On the topic of Velocity.

For questions about using Classic.

Post » Thu Sep 02, 2010 7:40 pm

Is there a way to set the Velocity of a Platform or Psychics Sprite? Or should I just repeatedly change the X and Y?
B
3
G
2
Posts: 26
Reputation: 727

Post » Thu Sep 02, 2010 7:58 pm

Oh wow, that was the 3,000th thread in this section
B
3
G
2
Posts: 26
Reputation: 727

Post » Thu Sep 02, 2010 8:13 pm

Yes, when choosing a new action, at the the top of the window listing the possible actions, there are tabs to choose actions related to behaviors applied to the object
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Sun Sep 05, 2010 5:07 pm

Really... because when I checked the Physics tab, it was empty. Strange, I'll doublecheck.
B
3
G
2
Posts: 26
Reputation: 727

Post » Sun Sep 05, 2010 5:39 pm

It's there.

For one of your conditions, click "New action." Choose the object you have the Physics behavior applied to. Go to the Physics tab. At the bottom, there should be a Velocity section with an option that says "Set velocity." It will ask you to input the X and Y components of velocity for the object.

You can also read the object's velocity instead of setting it. If you want something to happen when the velocity in the x direction reaches a certain level, for example, you could do the following:

Insert event --> System --> Compare --> select the "Value 1" field --> select the object from the list of objects at the bottom of the window --> go to the Physics tab --> choose "Get velocity x component"

You can then choose the value to compare the x velocity to. When you're done, you'll have a new condition on the event sheet. You can then add actions to that condition which will execute when the condition is met.
B
2
G
2
Posts: 10
Reputation: 670


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests