Notify/Alert Window?

rishi.patelrishi.patel Member Posts: 8
edited November -1 in Working with GS (Mac)
Hi, i'm new to this and still learning...

Searched a few pages and can't find a topic about this anywhere.

Is there a way to bring up a notification/alert window over the game scene?

Thanks for your help!

Comments

  • applaudmobileapplaudmobile Member Posts: 208
    you can't use the iOS native alert but you can certainly fake one with your own images and rules.
  • rishi.patelrishi.patel Member Posts: 8
    Thanks for your reply. Just so you know i'm making a HTML5 game for a website for a Uni project. How would I go about having it appearing over the current scene if I can fake it?
  • applaudmobileapplaudmobile Member Posts: 208
    You could "spawn" the image and buttons for the alert on to the centre of the scene or you can keep the alert actors hidden off the scene and "move" them or "interpolate" them into position.

    You also need to think about disabling any buttons going on underneath the alert box. the best way is to have a boolean attribute called game.alerton for example. Set this to true when you show the alert and false when the alert has been dismissed.

    On any buttons behind the alert you don't want to work you need to add an additional rule saying for example when touch=pressed AND game.alerton=false ... so they only work when there is no alert showing,

    Alternatively you could look at utilising the pause feature in game salad which would freeze all game action.

    I hope this helps a little, Philip
Sign In or Register to comment.