pin sprites

  • hello.

    i have a doubt with using pin with my sprites, i have a sprite for the hitbox for my enemies and the animations of them in other sprite. so i pined the sprite with the animations to the hitbox but it only pins to one enemy,i want to know if exist something to pin the sprite to all my enemies or if it is better to use only the sprite with the animations for the collitions or have the two sprites separated for my enemies.

    pd: sorry for my bad english :P

    Edit: here is my capx, you can see what is happening, it only pins to one enemy, also i have a problem with the ai, i need the robits to stop if they are to close to the player but they keep moving.

    Edit 2: fixed the issue with the animations and the ai.

           i need help with only 2 issues now:

           1: all the enemies set mirrored if one of them is mirrored

           2: if you kill one enemy all die.

    the robits are in the layout 2 and the events in the event sheet 2.

    capx actualized.

    dropbox.com/s/54ilfgme8vbt1xz/cosa.capx

    thanks.

  • i have actualized the capx, i fixed the issue with the pins sprites. but i need help with the animations and another issue: if u kill one enemy allthe others die.

    if someone could check my capx and help me pls.

    thanks.

  • you have to create a event like this (check "Bullet On created"):

    <img src="https://www.scirra.com/images/articles/instances.png" border="0" />

  • thanks for helping me, but i fixed that, now i only have the issues with the animations and the dead of all the enemies if u kill only one xD

  • I got some problem with pin behavior too. The object I pinned won't follow the host object. I double-checked it and compare it with tutorials and nothing wrong...the pinned object just floating there not following the host...is it a bug or any case like this??

  • I got some problem with pin behavior too. The object I pinned won't follow the host object. I double-checked it and compare it with tutorials and nothing wrong...the pinned object just floating there not following the host...is it a bug or any case like this??

    Post a .capx of your problem, otherwise we can't really help you with problem like this :)

  • r4dicaldreamer check my capx y fixed that with the pins, now it works, but i have the issue with the animations if u can check my capx and help me i would appreciate it.

  • bump

  • haifisch

    let me see what I can do

  • r4dicaldreamer thanks, that is the only thing that i need to fix (the animations bug and the thing that all enemies die if you kill only one) to continue with my game. if you could help me i would appreciate it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • i updated the capx because with some help i fixed the issues with the animations. now i only need help with this:

    • all of the enemies dying if u kill only one.
    • they all set mirrored if only one is mirrored.
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)