Is it possible to make grid based movement? An example of what I mean is Tibia.com
How would someone make this kind of movement in construct?
The video link shows what I mean:
youtube.com/watch
Akamari - This tutorial should help a lot (it did for me).
Cloning the Classics: Pacman -
scirra.com/tutorials/308/cloning-the-classics-pacman
Cool I'll have a look, thanks for the link!
hello —
i am a Tibia old school player :p
with the keyboard it works, but i don't know how to do with the mouse...
Like this great example —: petislands.ru/test/2/index.html
My capx can help: dropbox.com/s/nkhma41jrvftbz4/PathGrid.capx
Thanks guys, before I looked at your replies I managed to make really simple grid based movement, here's a screenshot of the events I've done for anyone else who is interested:
dl.dropboxusercontent.com/u/14062469/GridbasedMovementEvents.png
Relugy aah I see what you mean, I haven't managed to do that either..
with the mouse maybe you can compare the mouse x,y coordinates aginst the players and move the sprite a grid point in the direction of the mouse.
Develop games in your browser. Powerful, performant & highly capable.
Hmm.. yeah I can sort of understand how it can work now, I might give it a go!
And also BluePhaze I read your 'Platform Enhancement - Wall Jumping' tutorial for another project I'm doing and was very helpful, thanks :)
Relugy in your example you have the character moving in a grid style, but in your capx you have him just moving node to node and not in a grid style. Can you give details on how you got your character to move grid by grid using path finding? thanks.
Akamari Awesome glad it was of use to you! You may also want to take a look at lerp and set angle towards in order to find how to move in the direction of the mouse. These will allow you to figure out where the mouse is in relation to the grid and calculate the direction you need to move.
Yann made a nice example of grid movement some time ago
http://www.scirra.com/forum/pixelprecise-custom-movement-on-a-grid_topic47832_page1.html
Yes! shinkan
I used the Yann example.. great example :D