Regarding menu spawning during game
rino
Member Posts: 17
Hi there,
I was wondering how I can tackle this problem. I would like to change my main actor's spawning's (For example, spawning a different bomb type) during the game.
I wish to make a button in the corner of the scene and so when it is tapped on, it would spawn a menu with a choice of weapons. When I click on one of those weapons, the menu would close and any subsequent taps to the general screen would spawn a different type of bomb from the main actor.
Thank you!
I was wondering how I can tackle this problem. I would like to change my main actor's spawning's (For example, spawning a different bomb type) during the game.
I wish to make a button in the corner of the scene and so when it is tapped on, it would spawn a menu with a choice of weapons. When I click on one of those weapons, the menu would close and any subsequent taps to the general screen would spawn a different type of bomb from the main actor.
Thank you!
Comments
then in your menu have each actor contain an attribute so actor 1 change weaponUsed to 1, actor 2 change weaponUsed to 2.
then in your spawn actor have all the attributes point to the appropriate weapon actor.
if game.Weaponused = 1 spawn weapon actor 1
something along those lines, I'm sure a more advanced user will chime in.