Help with using Pause for a Bonus Game
NesesitaGames
Member Posts: 160
I hope someone can help me out here- basically, I want:
- A Magic Item to appear onscreen after a certain number of points are achieved. This moves back and forth (using Interpolate).
- When my Actor collides with the Magic Item, the scene Pauses and loads the Bonus Scene (which is a Pause scene). The scene is timed, and after 15 seconds the game is unPaused.
- When the Actor returns to the main game, the Magic Item should NOT be there any longer. You can only access the Bonus Scene ONCE.
- If the player resets the main scene, the Magic Item starts over.
I can set the Magic Item to destroy after collision (right before Pausing), but then if the player resets the scene, it doesn't get respawned. I've also tried setting the Magic Item to go offscreen upon Collision, but this doesn't seem to work either.
Please help?
- A Magic Item to appear onscreen after a certain number of points are achieved. This moves back and forth (using Interpolate).
- When my Actor collides with the Magic Item, the scene Pauses and loads the Bonus Scene (which is a Pause scene). The scene is timed, and after 15 seconds the game is unPaused.
- When the Actor returns to the main game, the Magic Item should NOT be there any longer. You can only access the Bonus Scene ONCE.
- If the player resets the main scene, the Magic Item starts over.
I can set the Magic Item to destroy after collision (right before Pausing), but then if the player resets the scene, it doesn't get respawned. I've also tried setting the Magic Item to go offscreen upon Collision, but this doesn't seem to work either.
Please help?
Comments
Have a attribute called magicreset, and set it to 0.
In the magic item have a rule when actor overlaps or collides with player change attribute magicreset to 1
have another rule in the magic item when attribute reset =1 change attribute self position y to 500.
Then on whatever button you press to reset, have a rule when touched is pressed, have your reset scene stuff and also have a change attribute changing magicreset to 0.
That should work for ya
I tried interpolating it offscreen, tried changing attribute position.x to go offscreen... but nothing worked. It was still there.
The only thing that seems to work for me is to Destroy the Magic Item right before loading the Bonus Scene... then in the case of resetting the entire Main Scene, Spawn the Magic Item (if it doesn't already exist).
I'm hoping the Destroy - Spawn won't be too resource intensive.
you could try going: When actor collides with the magic item, move item to x position 800 or something and after 0.1 seconds pause game. Then when the scene resets the item should come back, at least thats what works for me.