[HELP]Time scale

Get help using Construct 2

Post » Wed Jan 11, 2012 11:53 pm

I wanna make an event that makes the enemies go slower when i press the right mouse button.
1: So,i tried this:
Right button: Enemy time scale 0.5

but...nothing happens

2: and i tried doing another event:

Right button: Set time scale 0.5

but i don't want my char to get slow so i tried:

Right button:set time scale 0.5
             set char time scale 1.0

but the char gets slower anyway,so if you guys can solve one of these i'll be very grateful.(preference for the second one)


B
16
S
5
G
1
Posts: 43
Reputation: 1,787

Post » Wed Jan 11, 2012 11:58 pm

Time scale is dependent on delta time, so you have to use dt when creating movements.
Note: behaviors should already have dt applied.
If time scale is not working for a behavior then it is probably a bug.
Image Image
B
161
S
48
G
91
Posts: 7,358
Reputation: 67,271

Post » Thu Jan 12, 2012 12:04 am

Newt is right.
Also you can check this tutorial for more informations on the subject.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Thu Jan 12, 2012 12:37 am

thanks now i know what is delta time and framerate independence but if construct doesn't react to the time scale event then it's probably a bug

Now i managed to make the object scale go back to normal,but his animations are slow,so,since i was cutting the speed by half,i tried multiplicating the speed by two:(object.animationspeed*2)then,the animation got extremely fast,i think this is probably an obvious problem,but...any ideas?fmaf2012-01-12 00:57:22
B
16
S
5
G
1
Posts: 43
Reputation: 1,787


Return to How do I....?

Who is online

Users browsing this forum: Vegamon007 and 17 guests