Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Pause Game Need Help

Author
Message
Behdadsoft
15
Years of Service
User Offline
Joined: 7th Apr 2009
Location: Tehran-Iran
Posted: 2nd Sep 2016 18:07 Edited at: 2nd Sep 2016 18:39
Hi.

already I used this method for pause the game:



but in my big project, I can't use this method for currnet project because It is very complicated.

now I searched in forum and find an good example by baxslash for easy pause without use above code.
but when I use baxslash example, and use StopSprite() and PlaySprite() commands for control my animation, it Repeatedly playing. how can fix it?

in Unity there is an command like (Time.timescale) for control Pause game. AppGameKit have any command like unity for easy pause?

here is baxslash example:

https://forum.thegamecreators.com/thread/190624#msg2273883

Thanks.
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 2nd Sep 2016 19:12
You could call a function that has its own loop until you un-pause.

i.e:


V2 T1 (Mostly)
Phone Tap!
Uzmadesign
Behdadsoft
15
Years of Service
User Offline
Joined: 7th Apr 2009
Location: Tehran-Iran
Posted: 3rd Sep 2016 08:50 Edited at: 3rd Sep 2016 19:13
Thanks CJB for code.

But Problem still Exist and after use PlaySprite(), my animation play Repetitious . for fix this problem I used this command: PlaySprite(mysprite,10,0) for stop Play loop, but other problems will be caused.

this is my code:

Behdadsoft
15
Years of Service
User Offline
Joined: 7th Apr 2009
Location: Tehran-Iran
Posted: 3rd Sep 2016 19:19
any idea?
Funnell7
13
Years of Service
User Offline
Joined: 8th Sep 2011
Location: UK, England
Posted: 3rd Sep 2016 20:09
ResumeSprite()?
Using AppGameKit V2 Tier 1
Behdadsoft
15
Years of Service
User Offline
Joined: 7th Apr 2009
Location: Tehran-Iran
Posted: 3rd Sep 2016 20:34 Edited at: 3rd Sep 2016 20:35
Quote: "ResumeSprite()?"


Hi Funnell7.

I think Now work correctly. but I need more testing.

Thanks so Much.
Funnell7
13
Years of Service
User Offline
Joined: 8th Sep 2011
Location: UK, England
Posted: 3rd Sep 2016 20:43
Quote: "Thanks so Much."


Welcome
Using AppGameKit V2 Tier 1
Behdadsoft
15
Years of Service
User Offline
Joined: 7th Apr 2009
Location: Tehran-Iran
Posted: 5th Sep 2016 20:10 Edited at: 5th Sep 2016 20:18

Login to post a reply

Server time is: 2024-11-25 02:07:05
Your offset time is: 2024-11-25 02:07:05