How do I adjust frame on moving angle

Just started using Construct 2? Post your questions here

Post » Sat Dec 19, 2015 2:38 pm

Hello,

I'm trying to adjust the frame of my tank depending on the moving angle.
I guess the frame provided in the bundle are in the right order and i'm doing something wrong. :lol:

Here my code and the frames:

Image

Image

It's "working" however there is an offset from 180° between the car moving angle and the sprite.

Any advice?
B
3
Posts: 3
Reputation: 181

Post » Sat Dec 19, 2015 3:18 pm

change your animations so frame 16 becomes frame 0 (move 0-15 to the end.)

AQre 16 and 17 the same ?

or add 180 into your equation
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,782

Post » Sat Dec 19, 2015 3:25 pm

Tank you RamPackWobble

Adding 180 in equation only works on "one side".

Yes, it seems to be duplicated frames, however as said i used the frames inside the bundle delivered here :)

I will take first option then.
B
3
Posts: 3
Reputation: 181


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 2 guests