Regarding menu spawning during game

rinorino Member Posts: 17
edited November -1 in Working with GS (Mac)
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!

Comments

  • calvin9403calvin9403 Member Posts: 3,186
    make the button and when touch is press then change scene
  • ScootsScoots Member Posts: 507
    I would make it with something like this: make a game attribue called something like weaponUsed
    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.
Sign In or Register to comment.