Fabseven
Member
Hello
In my game there are some different phase each day like this :
- build phase : can build building, repair, etc
- event phase : many event
- result phase : got ressource and see what was done this day
The event phase could trigger somes differents things, i use irandom_range at the moment
0 : nothing happen
1 : fire in the town !
2 : flood in the town, no food this day !
3 : ennemy atk !
4 : boss atk !
and so on ... (i assume you understood)
at the moment i show nothing at the player but i could show something like "oh because the random you are under ennemy atk !" , but it's after the irandom_range.
Id like, if possible and if you already made it to code a wheel of choice witch is turning and selecting one of the event... a dice is another cool idea, something like a "machine à sous" is fine too.
But how can i do this ? Do you have any idea ?
My idea so far : Create an sprite with 1 frame per event and simply draw it. Then randomly stop it and then the current frame become the irandom_range value ? (to stop it i will irandom_range a number of step and when step = 0 i stop the animation).
In my game there are some different phase each day like this :
- build phase : can build building, repair, etc
- event phase : many event
- result phase : got ressource and see what was done this day
The event phase could trigger somes differents things, i use irandom_range at the moment
0 : nothing happen
1 : fire in the town !
2 : flood in the town, no food this day !
3 : ennemy atk !
4 : boss atk !
and so on ... (i assume you understood)
at the moment i show nothing at the player but i could show something like "oh because the random you are under ennemy atk !" , but it's after the irandom_range.
Id like, if possible and if you already made it to code a wheel of choice witch is turning and selecting one of the event... a dice is another cool idea, something like a "machine à sous" is fine too.
But how can i do this ? Do you have any idea ?
My idea so far : Create an sprite with 1 frame per event and simply draw it. Then randomly stop it and then the current frame become the irandom_range value ? (to stop it i will irandom_range a number of step and when step = 0 i stop the animation).