How do i make Construct 2 pick between numbers?
I was thinking adding a variable and then having it randomly draw between 1 and X but i can't finger out how to do this. any tips?
expressions
You can use Choose, or Random (converted to an Int).
Thank you blackhornet
nOT SURE WHAT i'm doing wrong here.
I have it
a box for Answer1 with text in it
Then a trigger
system set Answer1 to Random (1,101)
Tower1 set text to Answer1
but nothing shows up
CampingCarl
What's the trigger? Might want to check in debug mode that Random is actually being set.
Develop games in your browser. Powerful, performant & highly capable.
it's all set to do on start of layout
I found the bug, Its doing .3213213 or something like that after, how do i make it round up or down?
int(Random (1,101))
WOOT thanks black hornet!
CampingCarl For future reference, you can find a list of the possible expressions for rounding/converting variables here:
https://www.scirra.com/manual/126/system-expressions