Animation speed by Speed?

Get help using Construct 2

Post » Wed Jul 11, 2012 8:37 pm

Hello!
Wondering if anyone knew of a way to set an animation speed, based off the speed of the sprites movement (in platform) Thanks!
B
3
Posts: 20
Reputation: 315

Post » Wed Jul 11, 2012 8:49 pm

To set a sprite animation you use the action:

Sprite - Set animation speed (in the actions dialog it is in the section "Animation", "Set speed".

Considering a sprite with a platform behavior, you can set said action to:

Sprite.Platform.Speed

Having a look at the sprite manual entry might provide assistance.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Thu Jul 12, 2012 4:20 am

[QUOTE=Kyatric] To set a sprite animation you use the action:

Sprite - Set animation speed (in the actions dialog it is in the section "Animation", "Set speed".

Considering a sprite with a platform behavior, you can set said action to:

Sprite.Platform.Speed

Having a look at the sprite manual entry might provide assistance.[/QUOTE]

I understand how to set the speed of an animation, but I am wondering if it is possible to set the speed of the animation, based off the speed of the sprite when moving. Hope that clarifies. Thanks again!
B
3
Posts: 20
Reputation: 315

Post » Thu Jul 12, 2012 4:25 am



Hope it clarifies my previous instructions.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Thu Jul 12, 2012 5:17 pm

Ah ha! I understand. Thank you so much.
So that "Sprite.Platform.Speed" is saying Target sprite, platform, speed of, right? Can I use this type of coding for all sort of different actions?
B
3
Posts: 20
Reputation: 315


Return to How do I....?

Who is online

Users browsing this forum: armaldio, blackhornet, makkancs, TiagoCesar and 17 guests