Download

Creating a fixed canon - 2d

What would be the first step in learning how to implement a fixed canon for a 2d scroller? I thought about using the gun from the first person template and just fixing it, and changing the yellow shot with different objects I’d like to shoot out of it. Anyone have any experience with this? blueprint?

I personally would create an actor bp which contains the canon sprite/mesh/skeletal mesh/… After that, depending on how you want to control it, you can change the rotation of it → add the sprite with a “get” node - drag the link out - rotation.
After that set up a projectile blueprint which you will spawn from the front of the canon when you press a button (take a look at some basic projectile tutorials) :slight_smile:

I’m going to try this and I know I may have follow up questions… havent worked with nodes too much