0 Favourites

Duplicate enemies with an invisible box

  • 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:

    <img src="http://img51.imageshack.us/img51/5092/error3p.png" border="0" />

    hope someone can help, im so close to finish the tutorial...xD

  • 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 :)

  • 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

  • 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

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • 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!

  • It would probably help if you could possibly post a capx.

    That way someone can try troubleshooting it.

  • 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.

  • 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.Worked perfectly! thanks!

    It would probably help if you could possibly post a capx.

    That way someone can try troubleshooting it.

    Oh, thank you for the tip, i will try to if i cant find a way to do something else :P

  • 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

  • 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

  • you can use dropbox dropbox.com you need to register, install it and you only need to move your files to your dropbox folder and post the link to your file. or you can use this mega.co.nz

  • I used the second one, but i cant post links yet, so i think i will send you a private message :)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)