toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
Is it possible?
craps
Member
Posts:
353
May 2010
edited November -1
in
Working with GS (Mac)
Would it be possible to have an actor that would generate a random number between 2 and 12 when activated?
Comments
mrfunkleberry
Member
Posts:
424
May 2010
random(2,12)
quantumsheep
Member
Posts:
8,188
May 2010
8!
craps
Member
Posts:
353
May 2010
Funny - Let me be more specific - how would I go about having an actor (button) generate and display a random number when touched?
Thanks - I was actually thinking about 8 also - quantumsheep you win!
craps
Member
Posts:
353
May 2010
Make game ? attribute
Rule - actor is touched - pressed
----change attribute - game.game.number - to- random(2,12)
----????
Am I on the right track ?
IntelligentDesigner
Member
Posts:
517
May 2010
Yes, but you should do it twice random(1,6) once for each die...
reddotinc
Member
Posts:
653
May 2010
IntelligentDesigner
said
:
Yes, but you should do it twice random(1,6) once for each die...
when did he mention dice??
AfterBurnett
Member
Posts:
3,474
May 2010
He didn't... he meant dye. For multi-coloured underwear.
craps
Member
Posts:
353
May 2010
Then how do I get either a text to display the random number or have a image display the number?
Sign In
or
Register
to comment.
Comments
Thanks - I was actually thinking about 8 also - quantumsheep you win!
Rule - actor is touched - pressed
----change attribute - game.game.number - to- random(2,12)
----????
Am I on the right track ?