Professor Layton-style movement

Started by rattusrattus, Thu 03/10/2024 18:58:23

Previous topic - Next topic

rattusrattus

Thank you for the help. I think I've got it working okay now. I am a little confused for movement though. I was wanting to make a Professor Layton style of movement, where you click on a button to display arrows, which, when clicked, move you to the room in the direction the arrow was in. A way I can think to do this is to make a gui for the movement button per room, and make said gui display a new gui with the arrows for that specific room. Is there an easier way to do this? Thank you.

[Mod edit: Split new question from original thread]

Snarky

Do you mean that there's a fixed set of possible movement arrows (e.g. four directions) but not all arrows are available in every room?

You could set up some standard format to hold all the valid ways to navigate from the room. For example, you could add four custom (int) properties to the room: "North", "South", "East" and "West".

Then for each room you would set each compass direction value to the room number you go to if you click in that direction (leaving it as 0 if no navigation is available that direction).

Now you could use the same GUI always, and in the function to display it, it would check the compass properties for the current room and hide unused buttons as necessary.

SMF spam blocked by CleanTalk