Hi all,
I have been playing around with Construct 2 for a while and I have started to really like it.
I do have 2 questions that I am facing again all the time and I am not quite sure how to solve them or how other people solve them (what the "best" practise will be for them):
1. How do I do ... a simple pathfinding?
For example: I have a "Game Over" screen where I want the "Game Over" sprite simply to move from one position (y coordinate) to the other (from below the screen to the middle). Some easing would also be nice.
At the moment I am either using the bullet behaviour on the object and set speed to zero if it reaches a certain point/coordinate, or to do a "simulate up" on that object.
However both methods seem fairly unsophisticated to me.
2. How do I ... work with Layers correctly?
Same example as above: The game ends and I want to bring a "Game Over" Screen. I know I could make a Game Over - "Layout" for it however it feels better to me using "Layers" because first of all I don't want the music to stop and want the background to keep moving. It simply feels good I think, if a few things stay but just the layer changes.
That's why I make certain Layers (Game Elements, Player, Score etc.) invisible and another Layer (Game Over Screen) visible. But: Even though a layer is invisible you can still click on items in that layer. (for example you can still click the "invisible" Layer's Game elements). For a workaround I am now using global variables (game_element_layers = false, game_over_layer = true etc.).
But still that way doesn't seem so intelligent to me.
I am thankful for any hints how you make it!
Wishes,
Mike