This is a Smart Asset for a mobile shooter game character.
In this file, you will get two Smart Assets!
One is the actual character and the other is the bullet that the character shoots.
This will get updated as I come up with more ideas for it. The next update will be to account for multiple points for bullets to come out of.
Update #1: Character now has a SingleShot and DualShot. On the SpawnDualBullet node, you can adjust the X pos variable in order to adjust it to your liking.
Update #2: Added a DualPowerUp asset. The Character now has an exposed variable called DualShotTimer that you can set for the amount of time you want the dual shot to stay on for once the player hits the power up.
Character Controls: Hold and drag to move the character left and right. The ship will shoot as you hold. The movement of the characters are clamped as well and if you click on the Move with Clamp node you can set the X value of the clamp.
Bullet Controls: The bullet will move in the Z axis once it is spawned. If it collides with an object of Enemy it will destroy itself. After 2 seconds it will also destroy itself to help with optimization.
There is a node in the character smart asset for sound and all you need to do is click it and add the desired sound for shooting. There is also one for the death as well.
Exposed variables: The cooldown of the shooting or amount of time between shots being fired can be set. Also, the health of the character can be set as well. The speed of the bullet is also exposed so you can choose how fast you want it to go.