choose between to value

0plus1

  • Posts: 20
Does Stencyl have a function to choose between two numbers, like choose(1,2) will return 1 OR 2?

Thanks

rob1221

  • *
  • Posts: 9474
There's a random number block you can use for that.

0plus1

  • Posts: 20
No, I can't use that.

Random(1,50) returns all number between 1 and 50
while
Choose(1,50) return 1 OR 50

Alexin

  • *
  • Posts: 3130
if random number between 1 and 2 = 1
choose 1
otherwise
choose 50
"Find the fun"
alexin@stencyl.com

0plus1

  • Posts: 20
D'oh haven't thought about it, thanks  :P