Instance Variables

0 favourites
  • 7 posts
From the Asset Store
Easily store, modify, read and manipulate colors with Color Variables!
  • Hi there.

    I'm still not quite understanding instance variables.

    In this situation (Sorry for dodgey capture):

    <img src="http://1.bp.blogspot.com/-rZCbDn7qPCY/Ug8rLtG9JwI/AAAAAAAAAeE/teFcGxTy1T4/s1600/2" border="0" />

    Can I somehow use instance variables to make the moths beat their wings at different speeds?

    Thank you.

  • Add an instance variable to the moth named "ASpeed". Then in the event sheet:

    On start of layout

          > Moth > Set Value > "ASpeed" to > random (1,10).

          > Moth > Set Animation Speed to > Moth.ASpeed

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • That worked!

    Thank you!

  • I don't think the video showed actually does anything. It's loop length is only about 3 seconds for me (and I tried clicking your play button-- for future uses, seeing as you have your answer.)

  • Yeah, sorry about that.

    I find C2 crashes when I try to ctrl alt print screen. So I use video capture software when I want a screenshot. but I accidentally exported it as animated gif, instead of .png, and didn't notice it until I'd already uploaded the image to my blog.

  • Yeah, sorry about that.

    I find C2 crashes when I try to ctrl alt print screen. So I use video capture software when I want a screenshot. but I accidentally exported it as animated gif, instead of .png, and didn't notice it until I'd already uploaded the image to my blog.

    I usually just press Prt Scr (print screen) then paste into MS Paint and save JPG for screenshot.

  • He hey!

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

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