[PLUGIN] Pause , [Behavior] Pause

Post your completed addons to share with the community

Post » Tue Jan 31, 2012 2:44 pm

Great work! Keep it up!
B
13
S
2
G
4
Posts: 54
Reputation: 3,882

Post » Thu Feb 02, 2012 8:44 pm

If i pause game i can still change angle (change angle to cursor direction) of object and spawn another objects (bullets are freezes)
B
93
S
19
G
34
Posts: 1,840
Reputation: 27,963

Post » Thu Feb 02, 2012 9:40 pm

@delgado, Add a variable, Instance or global doesn't matter, and name BulletsPaused or Angle Paused.

then in your event where your shooting or changing angle, Add another condition:

system.EveryTick:
If(AnglePaused = false)
     -> SetSpriteAngleTowardPosition(Mouse.x, Mouse.y)

And something similar for the bullets,

Then on pause resume set it to false, or to 0 if using global varaibles.
B
29
S
12
G
7
Posts: 740
Reputation: 7,849

Post » Fri Feb 03, 2012 12:31 am

@delgado

Yes you can change the angle, the pause is only to set the dt to 0.

@smitchell provides another way to detect if now is paused, you can use "Condition:Is pause" from pause plugin, too.
B
97
S
22
G
178
Posts: 4,118
Reputation: 104,043

Post » Sun Mar 18, 2012 3:29 pm

Update:

Add version to 1.0
B
97
S
22
G
178
Posts: 4,118
Reputation: 104,043

Post » Tue Mar 27, 2012 5:31 pm

great plugin!

I've tried to set pause for hours using global variable. However, I can't find the way to use the same button to pause and resume.

Your plugin really helpful, Thanks a lot rex!
B
21
S
5
G
1
Posts: 39
Reputation: 2,715

Post » Wed Aug 29, 2012 11:54 pm

thanks very useful
B
9
S
1
Posts: 18
Reputation: 1,147

Post » Wed Nov 14, 2012 4:32 pm

Hi, I was wondering if I could NOT affect some sprite, so I could place an animated Pause flashing while the game is paused (aesthetic only).

I know it affects all the game timescale, but I was just wondering jeje
B
4
S
1
Posts: 22
Reputation: 671

Post » Wed Nov 14, 2012 4:36 pm

@Ga2Z

Sorry, this pause plugin will affect all sprites.
B
97
S
22
G
178
Posts: 4,118
Reputation: 104,043

Post » Sat Nov 17, 2012 4:22 am

Very simple but effective
B
9
S
4
G
2
Posts: 8
Reputation: 2,206

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: randomly and 2 guests