Page 1 of 1

Saving/Loading Canvas Actors

PostPosted: Sun Oct 21, 2007 1:58 am
by Astro Lemur
How do you (if its possible) save a canvas actor with stuff on it so it can be loaded later, and what script function loads it?

Re: Saving/Loading Canvas Actors

PostPosted: Sun Oct 21, 2007 4:23 pm
by Troodon
Well, you can't save it using the UI but you can play with coordinates (x and y value) in script editor.
So when you create the canvas actor to a place, it creates the objects defined in script editor.
I can be more specific if you need help. :)

Re: Saving/Loading Canvas Actors

PostPosted: Sun Oct 21, 2007 7:02 pm
by Astro Lemur
Could you be more specific, please?

Re: Saving/Loading Canvas Actors

PostPosted: Sun Oct 21, 2007 8:16 pm
by Troodon
Put in the create actor event of your canvas actor -> script editor ->

CreateActor("Actor1", "actor1animation", "(none)", "(none)", 245, -155, false);
CreateActor("Actor2", "actor2animation", "(none)", "(none)", 114, 16, false);
CreateActor("Actor3", "actor3animation", "(none)", "(none)", 200, 16, false);
etc etc

Then just create the canvas actor when needed.
For example you want to load the canvas actor when the player collide with target:

player -> collision any side of target -> create actor -> canvas

Was this helpfull?
:D

Re: Saving/Loading Canvas Actors

PostPosted: Mon Oct 22, 2007 12:25 am
by Astro Lemur
Yeah, i think i understand it now :D . Thanks much

Re: Saving/Loading Canvas Actors

PostPosted: Mon Oct 22, 2007 5:57 am
by Troodon
You are welcome! :D