Why Does This Happen On Restart?

Get help using Construct 2

Post » Mon Jan 05, 2015 4:48 pm

Hello - I have attached capx file for viewing... if you go through the game level hit the spikes and then die and get game over screen - why when you click try again the game dont run right??
You do not have the required permissions to view the files attached to this post.
Need Sprites For Your Next Project?
100% Vector Animated Sprites
B
8
S
2
Posts: 170
Reputation: 1,086

Post » Mon Jan 05, 2015 5:04 pm

Since your player object is global, you need to reset it manually, including its behaviors. I see you already reset its instance variables, but you lack a "Stop ignoring user input" to restart its platform behavior correctly.
Last edited by Magistross on Mon Jan 05, 2015 5:14 pm, edited 2 times in total.
B
69
S
28
G
24
Posts: 977
Reputation: 18,739

Post » Mon Jan 05, 2015 5:08 pm

desjardins2014 wrote:Hello - I have attached capx file for viewing... if you go through the game level hit the spikes and then die and get game over screen - why when you click try again the game dont run right??



What do mean by 'don't run right'?

You need to explain more clearly what you think the error is, rather than expecting others to trawl through code, they may have trouble understanding, looking for a bug.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
84
Posts: 5,388
Reputation: 58,458

Post » Mon Jan 05, 2015 6:28 pm

Magistross wrote:Since your player object is global, you need to reset it manually, including its behaviors. I see you already reset its instance variables, but you lack a "Stop ignoring user input" to restart its platform behavior correctly.


Can you look for me also while you have this capx and tell me why he only shows the climb animation on going up and not down the ladder?

PS: yes that previous comment helped me figure out the restart issue..
Need Sprites For Your Next Project?
100% Vector Animated Sprites
B
8
S
2
Posts: 170
Reputation: 1,086

Post » Mon Jan 05, 2015 6:29 pm

zenox98 wrote:
desjardins2014 wrote:Hello - I have attached capx file for viewing... if you go through the game level hit the spikes and then die and get game over screen - why when you click try again the game dont run right??



What do mean by 'don't run right'?

You need to explain more clearly what you think the error is, rather than expecting others to trawl through code, they may have trouble understanding, looking for a bug.



if you read what I wrote you would have seen I asked you too load the capx and run into the spikes and DIE you would have noticed at that point the player don't MOVE....
Need Sprites For Your Next Project?
100% Vector Animated Sprites
B
8
S
2
Posts: 170
Reputation: 1,086

Post » Mon Jan 05, 2015 6:43 pm

The events in the sheet "Movement" are overriding the animations changing events of the sheet "Event sheet 1", especially line 5, which is setting the animation to fall and setting current frame to 0 anytime the player is moving downward. You ought to add a "(negate) Is climbing" to events 4,5,6,7 in sheet "Movement".
B
69
S
28
G
24
Posts: 977
Reputation: 18,739

Post » Mon Jan 05, 2015 7:29 pm

Yup that works - thanks alot for your help Magistross I follow most your posts...
Need Sprites For Your Next Project?
100% Vector Animated Sprites
B
8
S
2
Posts: 170
Reputation: 1,086


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, Kermad, OBLIVION, shinkan, Solomon, yiuyiu6666 and 23 guests