Event that happens every 10 counts?

SAMmanSAMman Member Posts: 228
edited November -1 in Working with GS (Mac)
Hey Guys, how do I make an event happen every time an attribute counts to 10? Like say, every time you jump 10 times or 11 times or some number X, the scene changes. Something like that. Any ideas? Thanks.
SM

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi SM, straightforward in principle although there might be a few complications in practice.

    Anyway, you need an integer attribute, let's call it JumpCount, set to the default 0.

    Every time there's a jump, use a Change Attribute JumpCount to JumpCount + 1

    In an actor outside of the play area of the scene, put:

    When JumpCount = 10

    Change Scene.

    Hope that sorts it for you.

    ----------------------------------------------
    http://davidgriffinapps.co.uk/

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • SAMmanSAMman Member Posts: 228
    that works, but I was wondering how I could do that without have to say when jump=10, I wanted to do something like when jump=(every 10 jumps) if that makes sense. so on 10, and 20, and 30, etc, without me having to create a separate rule for each thing.
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    No way around that, I don't think. Not too much work though, to put Rules for each When JumpCount = ?? then whatever, surely?

    ----------------------------------------------
    http://davidgriffinapps.co.uk/

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • SAMmanSAMman Member Posts: 228
    ok, good to know, thanks.
  • aarioaario Member, PRO Posts: 256
    you could have another attribute that defaults as 1 lets say jumpMult.

    then say when JumpCount = 10*jumpMult

    change att. jumpMult to jumpMult+1 and change scene

    so basically what you're doing is changing the requirement for JumpCount as you need it so first it'll be 10 then 20 and so on..
  • Rob2Rob2 Member Posts: 2,402
    when jumps%10=0 do the jump thang (youll have to stop the first jump at 0 tho ):)
Sign In or Register to comment.