Having trouble with creating a reward system with Game Salad. Please help.

_Ghost__Ghost_ Member, PRO Posts: 22

Hi everyone, I hope you're all doing well :smile:

I'm in the process of making my very first game with Game Salad. It's a vertical, space Invader Style game for the iOS. Just like in Space Invaders, the object of my game is to destroy all enemies before they reach the fort coming from the top, to bottom. My game has three main scenes: Main menu scene (where all the different options are), Play scene (where the game is actually played), and Game Over scene (where the players learns how much he has scored and sees also his best score).

I'm offering three different types of shields: Bronze, Silver, and Gold, as rewards, when players tweet the game (using an actor called "tweet now") from the game over scene. Just one shield from these 3 shield rewards, are given to the player at random.

Bronze shield protects the fort for 5 seconds, Silver shield protects the fort for 10 seconds, and Gold shield protects the fort for 25 seconds. All the shields are basically an invisible actor which rests above the fort, and only gets activated, if the player does what I describe below:

When the player clicks on the "tweet now" button actor, I want the the tweet sheet behavior to kick in, and allow the player to post a tweet about the game on twitter. Simultaneously, I also want the "tweet now" button to count down from 10 seconds to 0, using a timer. Once the timer hits 0, the player is transferred to a different scene, where it tells the player which reward (Bronze shield, Silver shield, or Golden shield) the player has earned (for tweeting).

In this scene, the player has two options to pick from: home and Play. If player clicks on the home button, the player is then taken to the main menu scene, and does not get to use the reward.

However, when the player clicks on the play button, a new game round starts, but this time, the shield which the player has earned will be present in the scene (for however many seconds its supposed to be there for) and protect the fort from the lasers.

I have been able to set up the attributes for the shields, and a spawn actor above the fort actor (which will generate a shield) is ready to go.

I just cannot not figure out how to basically generate the right shield (above the fort) in the play scene, after the player hits the "play now" button from the reward scene (the scene where the game tells the player which random shield he has earned, as a reward for tweeting).

Could you please help me figure this out? I've been working really hard on this game since I started few weeks now, and this is literally the last thing I have to add in before I can mark this game as complete. I would be really appreciate if the community here can help me climb over this hurdle. :)

Please let me know if you need any further clarifications on this.

Comments

Sign In or Register to comment.