Jump to content

Spawning Construct3 "sprites" from multiple instances of a Spriter Object.


Recommended Posts


This might be a silly question, but I have had a REALLY rough time figuring out a solution of how I can spawn sprite objects in Construct3 from several instance of the same Spriter Object, does anyone know here on the forum? This is my scenario: Player uses "Slash"-sprite to hit "SpriterObject", then I want to spawn a "Hit"-sprite (+animation). I tried this:

- "Slash" on Collision with "SpriterObject" > Create "Hit" at SpriterObject.X & SpriterObject.Y.

This works as long as you hit a single instance of the Spriter Object. However, if two objects are caught up in the "Slash"-collision at the exact same frame. Only the last instance will get a "Hit"-sprite created.

In comparison, C3's "Sprite"-object has a built-in function called "Spawn Object", that fixes this issue. HOWEVER, This feature is not available for Spriter Objects (I'm using the drawSelf export to C3). I found a solution by creating the "Hit" object at SpriterObject > On Created, and adding "Hit" as a child to the Spriter Object, then replaying the animation every time "Slash" hits. This actually works. But it isn't really a solution, because, what if I want to spawn projectiles from multiple instances of a spriter object? In case they want to spawn on the same frame, only the last one will spawn a projectile. It would be great if the plugin offered a "spawn object"-function similar to C3's Sprite-object does

Perhaps there's already a much better way to do all of this? I might have been overthinking and making over-complicated workaround solutions? But I have been struggling with this for quite a while.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...