How to animate random frames

Get help using Construct 2

Post » Mon Aug 20, 2012 8:48 am

Hi guys,

Just got my lincense after a couple of days playing around with the C2 tools, I simply love it! Quick question, is it posible to play an animation in Random Frames, I mean if an animation has 6 frames then go and play the frames randomly? I have a goalkeeper in 6 diferent positions so i was trying to avoid making 6 diff animations with a single frame each.

Ill really appreciate your response pals!

Posts: 23
Reputation: 821

Post » Mon Aug 20, 2012 9:51 am

Use the "Set animation frame" action within the goalie's sprite and enter "random(0,[Goalie's name].AnimationFrameCount)". That should do the trick.

Make sure it doesn't happen every tick, though, or else your goalie will change frame 60 times a second.
Posts: 607
Reputation: 6,117

Post » Tue Aug 21, 2012 5:30 am

Thanks a lot Sully, will try and will let you know. Have a great day! I really appreciate your help
Posts: 23
Reputation: 821

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests