Delete this post please

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
star0629
Posts: 22
Joined: Thu Nov 28, 2013 9:04 pm

Delete this post please

Post by star0629 » Sat Jan 11, 2014 2:59 pm

i want to delete this post
Last edited by star0629 on Wed Jan 15, 2014 3:50 pm, edited 1 time in total.

magice
Posts: 457
Joined: Wed Mar 18, 2009 12:57 am

Re: Splash screen to pause the game

Post by magice » Sat Jan 11, 2014 5:33 pm

I would just use an image and buttons on the same card, and adjust the "visible" of those objects to true/false as needed. The tricky part will be actually pausing the game play.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

Re: Splash screen to pause the game

Post by dunbarx » Sat Jan 11, 2014 6:44 pm

Hi.

Or, (not sure how your game is built) couldn't you store the current state of the objects of interest in a custom property, and then restore them when you navigate back?

Craig Newman

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Splash screen to pause the game

Post by Simon » Sun Jan 12, 2014 2:55 am

Hi star0629,
If you used the "move" command you can use "stop moving", I haven't used the move command again but it's supposed to continue on from where it left off I think.
But many games use a "frame rate" to control the movement of the objects, simply

Code: Select all

on takeOff
set the top of image "rocketShip" to the top of image "rocketShip" -1
send takeOff to me in 10 milliseconds -- this is the frame rate
end takeOff
if you cancel the pending messages then the rocketShip will stop and remain in it's current position until takeOff is sent again. You can have multiple objects moving in that script in different directions and different speeds.
Using magice's method with this will work well.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply