Charge shot pause issue.

Just started using Construct 2? Post your questions here

Post » Sun Aug 13, 2017 2:12 am

I have this issue, I've created a a charge shot event, but it seems to be having issues when the game is paused/unpaused.

While the player holds down a button while the timescale is 1, add 1 one to charge_shot. When charge_shot is 3, and the player releases the button, spawnCharge. It works normal during regular gameplay, however if the player pauses and the game, (it sets the timescale to 0), releases the charge button, and then unpauses, the player still charging till the player presses the button again. Not sure if there's a nice solution or alliterate way of making a charge shot mechanic that won't be affected by the pause screen. Any help would be appreciated. :)
B
12
S
2
Posts: 33
Reputation: 714

Post » Sun Aug 13, 2017 8:37 am

Are you able to add a thing to your Unpause event that auto-fires or auto-cancels the charge if the player isn't pressing anything?
Image



Coming soon on Steam!
B
16
S
9
G
3
Posts: 205
Reputation: 3,468

Post » Tue Aug 15, 2017 6:39 pm

Yes. but it does it regardless if the player is or isn't holding down the fire button when they unpause.
B
12
S
2
Posts: 33
Reputation: 714

Post » Thu Sep 07, 2017 6:02 am

@justin64 could you post a test capx
Image
B
28
S
7
G
1
Posts: 111
Reputation: 2,690


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest