GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

creating a maximum number...

digitalzerodigitalzero Posts: 639Member, BASIC

okay... this may be a very simple question but i cannot seem to figure it out!

i have a button where the rules are as such: if b button is true every "such" seconds change attribute replicate to replicate+1

but check this out i want there to be a maximum number

so lets say i just want the replicate number to go no further than 7... how do i get it to stop because if i have the button down the number keeps on going...

so basically i need my actor to stop replicating after a certain number!

my explanations are horrible... and yes i am american lol.

Comments

  • SocksSocks London, UK.Posts: 12,822Member

    @digitalzero said:
    my explanations are horrible...

    +1 :p :D

    If replicate is < 7
    --if b button is true
    ----every "such" seconds
    ------change attribute replicate to replicate+1

  • zweg25zweg25 Posts: 738Member

    You could also do change attribute replicate to min(replicate+1,7)

Sign In or Register to comment.