0 Favourites

how do i make 1 instance of an object be different

  • hello guys.

    im making a beat em up style game and each instance of attack i spwan a "hitbox" object to handle the collision. i change the damage and properties when spawned. i do this in place of using the animations AS collisions, i just use image points to decide where i want the box to spawn.

    i feel like this is impractical so please if you have any suggestions on how i can handle multiple hitboxes better then this, please let me know.

    anyway, if i stick with my current way of doing things i need to know how to keep each instance separate from each other.

    whats happening now is when i call the hitbox for one instance and i call it again for anything else fast enough, it changes the first hitbox. it might be a simple fix but how do i keep each instance of the same object separate, so i can adjust them as if they were different object... if i actually make them different objects, were talking 50 to 100 different objects for every character since the hitboxes will change during the attack its called for...

  • You could use container(object+multiple hitboxes) or pin multiple hitboxes on objects and actived/desactived them with groups (or when you create objects)

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • i havent tried to use containers. ill give it a shot

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