timer on a different event sheet trouble

Get help using Construct 2

Post » Fri Mar 07, 2014 5:45 pm

Message: hopr37 can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
I have a timer in my main event sheet that, when triggered, causes various sprites to appear and disappear. Working as intended.
However, just to make things a little cleaner on my main event sheet I created a new event sheet with the timer information. I included this event sheet to my main event sheet.
What is happening is that no matter where I place the included event sheet, my sprites are going crazy appearing and disappearing so fast that it looks like there is no timer at all.
Can a timer work this way?

This is what I have in my main event sheet and then created a seperate event sheet with the same information and then did an "include event sheet" onot my main one.
( yes, I disabled my timer info on the main sheet)
https://dl.dropboxusercontent.com/u/273071520/timer.png
B
7
S
2
Posts: 158
Reputation: 1,021

Post » Fri Mar 07, 2014 6:10 pm

My best guess from what i can see in the screenshot is that its caused by Timer <= to 0, and would expect that your timer either gets stuck on 0 or lower, and therefore this keeps being true. And it will keep switching between your states. (60 times a sec) which probably explain why you say it goes crazy :)
B
44
S
11
G
2
Posts: 1,182
Reputation: 6,848

Post » Fri Mar 07, 2014 6:14 pm

Message: hopr37 can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
yea, this is what it looks like when I include a timer event sheet

Keep in mind that if this same information is included on my main event sheet, this doesn't happen.
The graphic is just a place holder so you can see what is happening

https://db.tt/2dz7P6ea
B
7
S
2
Posts: 158
Reputation: 1,021

Post » Fri Mar 07, 2014 6:19 pm

If I were you I would try to run your game in Debug mode, and check the timer variable. Compare it to the main event sheet where you say it works.
B
44
S
11
G
2
Posts: 1,182
Reputation: 6,848

Post » Fri Mar 07, 2014 6:28 pm

it's something with timer <- 0. If I disable that in my main event sheet, i get the same effect.
I just don't understand why it would not screw up if it's on my main event sheet but screws up when it's on a seperate event sheet.
B
7
S
2
Posts: 158
Reputation: 1,021

Post » Fri Mar 07, 2014 6:38 pm

Got it figured out.
had to leave "system timer <= 0" on the main event sheet
and then have the rest of it on a seperate event sheet.

seems to work
B
7
S
2
Posts: 158
Reputation: 1,021


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 26 guests