How do I turn object...Grid movement.

Get help using Construct 2

Post » Wed Apr 26, 2017 11:30 pm

Just trying to move an object 90 degrees on button press without moving from the tile the object is in.

I had started making a grid based movement system. It worked for a little while, but I can't remember how I did it.
I figured out moving up, and down every 32 pixels.
left and right is what I forgot how to do. I remember it required some sort of code.
Problem is, I try to do it now, (on key pressed left & right, turn at angle rotate clockwise/counter clockwise appropriately.) It worked before. But I started over due to code salad.

A better way to describe it is, tank controls. But, grid based.

It works the first time, on press left, but the second time I press left, the character seems to move to a different tile...
Last edited by justintime0185 on Wed Apr 26, 2017 11:55 pm, edited 1 time in total.
B
7
S
2
Posts: 33
Reputation: 591

Post » Wed Apr 26, 2017 11:52 pm

Can u upload a simple capx file? Cheers.
https://www.facebook.com/TeslaPCgames

https://www.twitter.com/TeslaPCGames

[email protected]

http://www.synergy-studios.net
B
45
S
21
G
58
Posts: 113
Reputation: 32,427

Post » Thu Apr 27, 2017 1:44 am

Hey man, sorry I actually figured it out.
For some reason the camera tends to jolt making me think its not working when it is. Thanks. :)
B
7
S
2
Posts: 33
Reputation: 591


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot] and 14 guests