Switching characters between layouts

For questions about using Classic.

Post » Sat Feb 22, 2014 9:01 pm

Hi everyone!
Just today i started losing my head on this great piece of software and now i seem to be stuck :( would gladly appreciate any help

Basically I'm trying to go for a Metroidvania platformer in which the player can control multiple characters and switch between them freely (starting with two, plan to make three).

I was able to get the characters to switch properly in one given layout, but when it comes to multiple layouts things get a bit complicated. I would like the player to place characters in different rooms and quickly switch between them in order to solve some puzzles.

Now, i don't seem to properly understand how the Global Property works for objects. I am not able to move characters to the next layout and even if i get some results, by putting in one copy for each layout, all my global events stop working (animations and so on). Much less being able to switch between layouts.

I tinkered around with families, global variables, private variables and so on, but nothing seem to work. any advice?
B
3
Posts: 3
Reputation: 191

Post » Sun Feb 23, 2014 7:27 am

Perhaps post a capx.

Edit: apologies, just noticed this is in the construct classic section.
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,592

Post » Sun Feb 23, 2014 6:32 pm

Made up a quick example cap, is this what you're looking for? https://dl.dropboxusercontent.com/u/4714446/3CharSwitch.cap :)
B
127
S
43
G
18
Posts: 2,240
Reputation: 20,592

Post » Sun Feb 23, 2014 8:21 pm

YES! Great! thank you so much

I didn't think of activating and deactivating the behaviors. I resorted to sending the players who didn't belong to the layout in a small box in the sky, but everyone was always falling -.-

thank you again, there were also a lot of nice tricks in that .cap :)
B
3
Posts: 3
Reputation: 191

Post » Sun Feb 23, 2014 10:34 pm

Glad to help! :) Good luck on your game :D
B
127
S
43
G
18
Posts: 2,240
Reputation: 20,592

Post » Mon Feb 24, 2014 7:49 pm

hm i got a strange bug... basically if the character is standing in some particular spots, mostly on the edge of the layout, switching to another layout and back will cause him to be teleported without any visible reason.
this is the .cap

www . dropbox . com/s/2og3rxkbzcjqb22/prototype.cap (remove the spaces)

to reproduce the bug:
1.move the orange guy all the way up and into the door (jump with z, enter door with up arrow)
2.move him all the way to the left
3.switch back and forth (press 2, press 1)

and the guy is gone. debugging shows that he is teleported up and to the left, falling out of the layout :(

i am completely clueless o.o
B
3
Posts: 3
Reputation: 191

Post » Wed Feb 26, 2014 7:21 am

Hm this is a problem with the Platform behavior still doing stuff I think :( I'll try and fix something up
B
127
S
43
G
18
Posts: 2,240
Reputation: 20,592


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests