Hello boys and girls,

I made a custom movement on an Isometric Grid field and it is based on the movement you see in Habbo Hotel, the visual chat application. This engine can be used for visual chat game, RPGs, Strategy Games... yeah why not?

Most of the maths explanation is in the event editor of the open source file itself but here is an image to explain the core.

Image

The hero of the game (the player's unit) can only walk 8 directions, so if the player clicks on a coloured area, the hero cannot go directly to that spot. So I made an engine to recognize the area the mouse is in and when the user clicks it goes to that spot. When you click on a blue line, that's easy. it just goed directly to it, but when you click on an area in between if will go in 2 steps. you will see when you download the open source file, here is the URL:

http://home.wanadoo.nl/tonbreij/hotel_engine.cca


Image