Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ignore the other platform posts, read this

Status
Not open for further replies.

fugigoose

Programmer
Jun 20, 2001
241
US
Ok, i've discovered somethimg to make this problem easier. When the guy in my platform dies it screws up my game. If i play the game and dont die and then stop it and play it again it works find. BUt if i die and then restart it, it stops working right. The varibles are coming back as 1 instead of 0 like they should. If i put the scrollbar of the stage area to its top the varibles work right again. Really wierd. Thing is, when you die, you switch frames. Does somethign wierd happen to the globals when you switch frames that would cause this to happen? And how are you suppose to "Properly initialize the varibles when you start your movie? HELP ME
 
sounds like a rogue script to me. clearglobals is a sure fire way to clean them all up, then run your init script.
Startmovie isn't the best place to init, do it on a button press (eg a PLAY button) otherwise you only init the first time you run. other place is the first frame of your game.


so your button script might go
on mouseup
clearglobals
initScipt << this should be a handler
end

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top