How do I restart layout completely?

Get help using Construct 2

Post » Wed Aug 20, 2014 3:49 pm

Hello,

I have ran in to a small problem, I am not able to reset layout completely after "Game Over". Game there is power ups dropping down in order (used animation method to do it), one of power ups flips layout upside-down. Problem is after game over all power ups continues where I left before I have dead and not starting from beginning, also if I lost while screen upside down it stays that way for next game. I have tried a lot options but still no joy: restart layout on collisions with objects, tried to set angles but nothing worked. Any ideas how to reset game layout completely, game will be for mobile. Thanks
B
8
S
2
Posts: 25
Reputation: 552

Post » Wed Aug 20, 2014 4:03 pm

Try resetting all your global variables.. Once they change they stay changed while the program runs..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Aug 21, 2014 5:42 am

unfortunately there was no joy
B
8
S
2
Posts: 25
Reputation: 552

Post » Thu Aug 21, 2014 6:17 am

ex------
on button click--- add action as
system -> restart layout
system --> reset global variables ..
B
7
S
1
Posts: 68
Reputation: 561

Post » Thu Aug 21, 2014 6:48 am

nop it doesn't work, all game does reset from beginning, only one problem is it is stays flipped if I lost in that position, I don't know how to flip it back on a new game/restart
B
8
S
2
Posts: 25
Reputation: 552

Post » Thu Aug 21, 2014 7:09 am

I found solution to my problem with flipping issue: sprite -> outside of a layout -> system -> set layer 0 angle t 0 degrease and then go to game over "Layout"
B
8
S
2
Posts: 25
Reputation: 552


Return to How do I....?

Who is online

Users browsing this forum: Microbex, PROxMTswatTR and 17 guests