How do I Pause 'every tick objects'

Get help using Construct 2

Post » Thu Jul 03, 2014 1:00 am

I am trying to make a pause menu and am having some complications. Basically, I am having the system set the time scale to 0, but since I have an object moving forward 2 pixels at every tick, it bypasses that.
Any fix for this? Thanks
B
5
S
1
Posts: 11
Reputation: 418

Post » Thu Jul 03, 2014 3:12 am

Create a global variable called stop_object. Now in the place where you added the every tick event, add another condition called System --> Compare Variable --> stop_Object = O. It's not a new event, Its another condition.

Then when you want the game to stop events, add Action Compare Variable --> stop_Object = 1. Check capx

Hope it helps
You do not have the required permissions to view the files attached to this post.
Image
B
31
S
7
Posts: 197
Reputation: 2,497

Post » Thu Jul 03, 2014 4:17 am

You should use delta time (dt) when moving your object. So, (2 * dt) instead of just 2. Look it up in the manual or tutorials. Then your object will stop when timescale is zero.

edit: sorry didn't read the title properly
Last edited by codah on Thu Jul 03, 2014 5:20 am, edited 1 time in total.
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Thu Jul 03, 2014 4:53 am

Put your object inside a group the deactivate it when pause , And when the game run activate the group.
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155


Return to How do I....?

Who is online

Users browsing this forum: blue visionary, Lordshiva1948, OBLIVION and 17 guests