How do I move the caracter of one tile per movement?

Get help using Construct 2

Post » Fri Mar 14, 2014 3:46 pm

How do I move the caracter of one tile per movement?
B
6
S
2
G
3
Posts: 8
Reputation: 2,280

Post » Fri Mar 14, 2014 4:23 pm

Example:

When moving right:-

player.x = player.x + (number of pixels)
B
72
S
25
G
9
Posts: 383
Reputation: 10,661

Post » Fri Mar 14, 2014 6:33 pm

thank you but I'm using
when key is down move 32 pixels at angle 0 (to move forward)

but it moves too fast
I want a sort of bomberman style game, but I want it to move 1 block each time (not like the tutorial in gameDev tuts)
B
6
S
2
G
3
Posts: 8
Reputation: 2,280

Post » Fri Mar 14, 2014 6:56 pm

Last edited by Yann on Sun Sep 14, 2014 7:06 pm, edited 1 time in total.
B
66
S
22
G
14
Posts: 1,484
Reputation: 16,511

Post » Fri Mar 14, 2014 9:40 pm

Thank you Yann!! I Have a maze type game that moves in blocks but was having trouble checking if there was a free space in the direction of movement, you've just solved that! :)
B
72
S
25
G
9
Posts: 383
Reputation: 10,661

Post » Fri Mar 14, 2014 11:18 pm

wow, thank you very much!
B
6
S
2
G
3
Posts: 8
Reputation: 2,280

Post » Fri Mar 14, 2014 11:25 pm

and what if I want to keep it moving until it hits the wall?
http://www.mediafire.com/download/seh9c ... ement.capx
B
6
S
2
G
3
Posts: 8
Reputation: 2,280

Post » Sat Mar 15, 2014 12:08 am

B
15
S
3
Posts: 13
Reputation: 1,082


Return to How do I....?

Who is online

Users browsing this forum: alextro, tarek2, wenwen11212016, Yahoo [Bot] and 10 guests