Car Behavior, initial direction?

Just started using Construct 2? Post your questions here

Post » Sun Feb 26, 2017 7:21 pm

Angle seems to just affect how the object appears, but not the initial direction if accelerate is applied, how do I actually set the initial direction of a car behavior object in the events?
B
41
S
12
G
14
Posts: 1,120
Reputation: 11,259

Post » Mon Feb 27, 2017 6:03 pm

Not sure what you mean here.

The car will move in the way to where the angle is pointing.

E.g. the little line with the square you see in the editor shows you the initial direction, which can be changed by adjusting your sprite (i believe initially its to the right).

I dont know of a way where you could change the angle without it changing the angle of appearance as well, but this can be worked around with using two objects: One for the car behavior and one for the appearance and using the pin-behavior to have it stuck together.
B
22
S
7
G
4
Posts: 154
Reputation: 3,709

Post » Tue Feb 28, 2017 10:46 pm

Zebbi wrote:Angle seems to just affect how the object appears, but not the initial direction if accelerate is applied, how do I actually set the initial direction of a car behavior object in the events?


It starts out at 0 angle.

You can change that in the settings angle to any angle.

If you want the car to face at 0 rotate the sprite in the editor until it face right and then it will match what you see when played.

If you are using one sprite and the car behavior set smooth 360 in the behavior settings.
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,790

Post » Sun Mar 12, 2017 3:23 am

Hey @zebbi - how are you using the behavior, are you spawning objects with it or something? You should be able to point your car in any direction and have it move in that direction when accelerating.
B
65
S
39
G
24
Posts: 352
Reputation: 18,106

Post » Sun Mar 12, 2017 7:08 pm

ultrafop wrote:Hey @zebbi - how are you using the behavior, are you spawning objects with it or something? You should be able to point your car in any direction and have it move in that direction when accelerating.

Actually, I was using it to float an object around, but I just made it invisible and glued a fixed angled version over the top! :D
B
41
S
12
G
14
Posts: 1,120
Reputation: 11,259

Post » Sun Mar 12, 2017 9:27 pm

Sweet! Hopefully we get to see what you're working on :)
B
65
S
39
G
24
Posts: 352
Reputation: 18,106


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 2 guests