How do I Move object with regard to own rotation vs layouts

Get help using Construct 2

Post » Tue Oct 20, 2015 8:47 pm

Hi all,

Just looking to see if there is an easy way to move an object with regard to the objects own orientation instead of along the layouts x y axis. For example, if an object was rotated 45 degrees, and I used the 8 dir movement behavior, currently the object will move straight left along the layout's x axis if I simulate left input.

I know I could just use "move at angle" action, but was wondering if there was an easier way to get movement (with acceleration, decel) identical to the objects settings for 8 dir movement behavior. Some objects I use move with regard to the layouts axis, and others I want to move with regard to their own rotation, so it would be convenient to have the same consistency of movement without trying to simulate this through too events. Thanks!
B
5
S
2
Posts: 32
Reputation: 493

Post » Wed Oct 21, 2015 2:58 am

If you want localized rotation dont use 8 direction. Use Rotate clockwise and rotate counter clockwise... The localize movement is Move Forward. Wish there was also move right and move left for strafe .

There is a car behavior too, maybe with some tweaking it will work as well.
B
29
S
8
G
4
Posts: 767
Reputation: 5,985

Post » Wed Oct 21, 2015 9:00 pm

Ya, the rotation is fine. I need the strafing left and right with regard to objects rotation. Eh, I was hoping I was just missing a setting or something simple, I guess it's likely I'll just have to use some events for it.
B
5
S
2
Posts: 32
Reputation: 493

Post » Wed Oct 21, 2015 9:11 pm

I have a solution I am uploading now, Check your PM in about 5 minutes :)
B
29
S
8
G
4
Posts: 767
Reputation: 5,985


Return to How do I....?

Who is online

Users browsing this forum: bluesun66 and 2 guests