How do I : Make a timer that starts when character is moving

Get help using Construct 2

Post » Sun May 24, 2015 6:15 pm

How do I : Make a timer that starts when character is moving? I got it working one way, but there are several problems with the system i made. These are the problems i'd like to cut out but i just cant figure a way out..

1) The timer keeps running after character dies / level is passed.

2) The timer starts when i launch the game(1st menu).

3) The timer does not reset when the character dies / level is passed.

4) The timer does not pause when i pause the game.

I tried to make one system into .capx but it just doesnt work any way i want it to.

Here is the latest system but i have no idea how to make it further.
Also, "king" is the character that is moving and starts the timer (variable used to do that is global var Move).
https://dl.dropboxusercontent.com/u/921 ... racter.png
Find my devblog @ http://relitgames.com/
B
7
S
2
Posts: 32
Reputation: 587

Post » Sun May 24, 2015 6:26 pm

You could do it with the timer behaviour:

- move = 1
- trigger once
> start timer "moving" for 1 second

on timer "moving"
> add 1 to SecondsMoving
-- move = 1
> start timer "moving"for 1 second

on player dead
> stop timer
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 » Mon May 25, 2015 5:24 pm

Well, i got it working already.. Main problems are what i have listed in starting post.
Find my devblog @ http://relitgames.com/
B
7
S
2
Posts: 32
Reputation: 587

Post » Mon May 25, 2015 6:28 pm

If you've got it working the way you want to, then there would be no problems, right?

My explanation gives you a way to solve those main problems, but well..
If it's already working...
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 » Tue May 26, 2015 3:29 pm

:lol: @LittleStain
B
36
S
10
G
4
Posts: 250
Reputation: 7,963


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 6 guests