Transfer a character between layers

For questions about using Classic.

Post » Tue Nov 16, 2010 2:45 pm

I have another problem :D
Can I "transfer" a character between layers? Or I'm forced to create a new sprite with all actions and attibutes and define it's spawn point?
B
2
G
2
Posts: 10
Reputation: 670

Post » Tue Nov 16, 2010 8:40 pm

Just curious why do you want to change the layer? Why not start with it on the proper layer to begin with. Or put it on it's own layer?
B
28
S
8
G
8
Posts: 530
Reputation: 7,154

Post » Tue Nov 16, 2010 8:43 pm

I have a really big layout, app. 12800x800, but it's not enough :D I'm afraid that operating on such big layouts, with many sprites, animations and events will choke my computer.
B
2
G
2
Posts: 10
Reputation: 670

Post » Tue Nov 16, 2010 9:47 pm

First you say layers, then you start talking about layouts. Which is it? I assume you meant layouts.

If you want to change where the character is at runtime...
The yes, you have to create a new sprite, or have one already in the layout ready to be repositioned if needed based on initialization global variables (if you need the character to come out of certain door based on where he came in last, for instance). There is no transfering. And if there were, it would just be creating a new one. Lesson one, computers are dumb. :)

However, if you just want to add your character to a different layout in the IDE, then just copy and paste him into the new layout. Objects are global to the application, but only visible in non local event sheets. So you won't be able to reference objects in events which are not on the layout if your editing the layout's local event sheet. In global event sheets you use any objects in the application. Copying and pasting the object to another layout just instances it there.
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Tue Nov 16, 2010 9:59 pm

Oh my god, I'm so stupid! Of course it was a typo - I mean layouts :D
Thanks for your answer!
B
2
G
2
Posts: 10
Reputation: 670


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 6 guests