Saving/Loading Canvas Actors

Game Editor comments and discussion.

Saving/Loading Canvas Actors

Postby Astro Lemur » Sun Oct 21, 2007 1:58 am

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?
User avatar
Astro Lemur
 
Posts: 12
Joined: Sun Mar 25, 2007 4:05 pm
Location: Port Townsend, WA
Score: 1 Give a positive score

Re: Saving/Loading Canvas Actors

Postby Troodon » Sun Oct 21, 2007 4:23 pm

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. :)
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Re: Saving/Loading Canvas Actors

Postby Astro Lemur » Sun Oct 21, 2007 7:02 pm

Could you be more specific, please?
User avatar
Astro Lemur
 
Posts: 12
Joined: Sun Mar 25, 2007 4:05 pm
Location: Port Townsend, WA
Score: 1 Give a positive score

Re: Saving/Loading Canvas Actors

Postby Troodon » Sun Oct 21, 2007 8:16 pm

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
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Re: Saving/Loading Canvas Actors

Postby Astro Lemur » Mon Oct 22, 2007 12:25 am

Yeah, i think i understand it now :D . Thanks much
User avatar
Astro Lemur
 
Posts: 12
Joined: Sun Mar 25, 2007 4:05 pm
Location: Port Townsend, WA
Score: 1 Give a positive score

Re: Saving/Loading Canvas Actors

Postby Troodon » Mon Oct 22, 2007 5:57 am

You are welcome! :D
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron