How to animate random frames

  • 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.

    I?ll really appreciate your response pals!

    <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Use the "Set animation frame" action within the goalie's sprite and enter "random(0,[Goalie's name].AnimationFrameCount)". That should do the trick. <img src="smileys/smiley2.gif" border="0" align="middle" />

    Make sure it doesn't happen every tick, though, or else your goalie will change frame 60 times a second. <img src="smileys/smiley36.gif" border="0" align="middle" />

  • Thanks a lot Sully, will try and will let you know. Have a great day! I really appreciate your help <img src="smileys/smiley20.gif" border="0" align="middle" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)