Duplicate enemies with an invisible box

Get help using Construct 2

Post » Thu Mar 14, 2013 5:09 pm

Well, i was -still- doing the tutorial of "how tomake a platform game" by Ashley, and i saw he didnt add boxes to the enemies, but now im trying to, the problem is that i dont know how, i tried to do just like with the player, but it didnt work at all, when a snail box hits an edge, all the snails get mirrored, and when i jump on one of them, the snails disappear, although the snail boxes continue there.
here its the coding i did for that:

hope someone can help, im so close to finish the tutorial...xDZignide2013-03-14 17:42:40
B
3
Posts: 21
Reputation: 619

Post » Thu Mar 14, 2013 5:28 pm

Did you pin the box to the snail, or the snail to the box? You need to have the snail pinned to the box. Also check that all your movement is on the snailbox, none of the movement should apply to the snail. The only thing the snail should be doing is mirror/not mirrored (left/right).

Also Ashley is a man. Just letting you know :)
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,428

Post » Thu Mar 14, 2013 5:41 pm

I checked and everything seems to be fine...I pinned the snail to the box, and all the movement is on the box, but when i clon them and their boxes with ctrl+drag, it still happens...

Also, oops, sorry, im editing that! xD
B
3
Posts: 21
Reputation: 619

Post » Fri Mar 15, 2013 5:30 pm

BUMP!
24 hours passed -almost, but i have to go xD- and i still couldnt solve the problem...
I understand more or less why my code is not right, but i tried others and they dont work anyways...
My question is, what commands can i use to clone an enemy with an invisible box, so they still conserve their properties? In the tutorial i looked, they did that, but without an invisible box, what i did was the same but changing the movement to the box, still, it doesnt work...

hope i can find some help, im so close to finish the tutorial xD
B
3
Posts: 21
Reputation: 619

Post » Mon Mar 18, 2013 5:24 pm

Last...BUMP!
I made that if the sprite is colliding with the box, then it disappears, and it worked, the problem is when one enemy is passing through the other one...
I dont get why it worked though for that too, that only one of them disappears, because both are colliding with that object, one is colliding with a copy, but still, and the "is pinned to", didnt work...
Well, now im trying to solve the problem of when an enemy is passing through the other one, because then both of them disappear, and a box remains there anyways.

I think this will be the last bump if none replies, as i dont think i will find a reply if none replied to 2 bumps.
Any help is appreciated!
B
3
Posts: 21
Reputation: 619

Post » Mon Mar 18, 2013 8:23 pm

It would probably help if you could possibly post a capx.
That way someone can try troubleshooting it.
B
20
S
2
Posts: 257
Reputation: 2,431

Post » Mon Mar 18, 2013 8:31 pm

Select the snailEnemyBox, click Create Container on the left under properties, add the snail sprite to the container. Now when you pick the snailEnemyBox, the snail is picked as well. That will make the snails mirror correctly and when you destroy the box the snail will be destroyed too.
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,020

Post » Tue Mar 19, 2013 1:01 pm

[QUOTE=ramones] Select the snailEnemyBox, click Create Container on the left under properties, add the snail sprite to the container. Now when you pick the snailEnemyBox, the snail is picked as well. That will make the snails mirror correctly and when you destroy the box the snail will be destroyed too.[/QUOTE] Worked perfectly! thanks!

[QUOTE=Auntie Val] It would probably help if you could possibly post a capx.
That way someone can try troubleshooting it.[/QUOTE]

Oh, thank you for the tip, i will try to if i cant find a way to do something else :P
B
3
Posts: 21
Reputation: 619

Post » Tue Mar 19, 2013 3:42 pm

@Zignide hi can you post your capx.
i have this issue too and i dont know how to fix it. if u could help me with that, thanks
B
17
S
2
G
2
Posts: 82
Reputation: 1,712

Post » Tue Mar 19, 2013 7:46 pm

Sure, i just need to know how to post the capx...xD
I totally forgot to ask, i will post the capx as soon as i know how.
Hope someone can tell me how...xD
B
3
Posts: 21
Reputation: 619

Next

Return to How do I....?

Who is online

Users browsing this forum: christina and 20 guests