Stacked sprites shooting?

Please read:

I need a way for the player to shoot that doesn’t look like the cannon/gun is on the bottom. I’m using spritestacking, so the base object will be shooting, but is there a way to select a layer to fire the ammo?
Is there a way for a specific layer of the stack to fire?

-Ember.Y

1 Like

Edit Emit point does exactly that.

1 Like

Sure, it edits the emit point for flat objects, but how can it be used for spritestacked objects?

1 Like

ok i did that

1 Like

Oh, yeah. That’s a pretty neat way. I’ll test it, if it works, I’ll give the solution.

1 Like

What you could do is give each layer of the spritestack a unique starting value, then have the shooting code activate for whichever layer’s starting value the gun is on.

1 Like

It already has a starting value.

1 Like

thats what my code does :expressionless:

2 Likes

Thanks a lot! It worked.

2 Likes