Hi, I need A Simple Save/load script that will give you a code of your x posision, y posision and score, and all that so you can go on another computer and load it there!
Thanks!
Orangeoz
Last edited by orangeoz (2010-07-23 04:39:51)
Offline
Hmm... try having 3 variables:
SaveX
SaveY
SaveLevel
Then:
When I recieve save
set SaveX to X position
Set SaveY to Y position
Set SaveLevel to Level
and
When I recieve load
Change to costume #SaveLevel
Set X position to SaveX
Set Y posiiton to SaveY
you might also want to have
When I recieve ResetSave
Set SaveX to 0
Set SaveY to 0
Set SaveLevel to 0
Offline
helltank wrote:
Hmm... try having 3 variables:
SaveX
SaveY
SaveLevel
Then:
When I recieve save
set SaveX to X position
Set SaveY to Y position
Set SaveLevel to Level
and
When I recieve load
Change to costume #SaveLevel
Set X position to SaveX
Set Y posiiton to SaveY
you might also want to have
When I recieve ResetSave
Set SaveX to 0
Set SaveY to 0
Set SaveLevel to 0
But Is There Any Way I Could Make It Say A Code To Use Someware Else?
Offline
You mean like this?
Last edited by melikecheese (2010-07-23 06:37:50)
Offline
orangeoz wrote:
helltank wrote:
Hmm... try having 3 variables:
SaveX
SaveY
SaveLevel
Then:
When I recieve save
set SaveX to X position
Set SaveY to Y position
Set SaveLevel to Level
and
When I recieve load
Change to costume #SaveLevel
Set X position to SaveX
Set Y posiiton to SaveY
you might also want to have
When I recieve ResetSave
Set SaveX to 0
Set SaveY to 0
Set SaveLevel to 0But Is There Any Way I Could Make It Say A Code To Use Someware Else?
Just have the game tell you those three variables when you want to save, and then have the other game ask for them when you want to load. Example:
Last edited by Harakou (2010-07-23 09:27:08)
Offline
It's not easy to do that in Scratch. The best way is to give them a code. For example, if * were a random number, you could give them a code like:
*-xposition-***-****-yposition-***-score-**
It might be easy to crack, but at least you can use a parsing technique.
Offline