Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

RPG Maker Action Combat - RPG Maker MZ Plugin

Create high quality ABS, action games right inside RPG Maker · By Sang Hendrix

[ANSWERED] Firing modes for "gun" weapons ?

A topic by dasnotme created 18 days ago Views: 85 Replies: 4
Viewing posts 1 to 4
(+1)

Hey,
First of all, great plugin ! I've been playing around with the idea of a shooter game, however i couldn't figure out how to shoot multiple projectiles with a single attack or how to have "automatic fire" allowing to continuously fire until you stop pressing the attack button.

I'm sure it would be possible, but I don't know what to modify in the demo to achieve it, could you help me or point me in the good direction ?
Thanks!

Developer

It's pretty simple. I'll demonstrate the eventing here: 

Conditional Branch: Input.isTriggered('g')

> Command: Spawn Event named Bullet

> Wait 5 frames

> Call command Spawn again

> Wait 5 frames

> Call it again

This will shoot 3 bullet in one button pressed

Hi ! Thanks for your quick reply.

How would you go for making a weapon that constantly shoots until you stop pressing the attack button ?

Developer (1 edit)

It requires more knowledge in eventing. I'd create 2 event/common event Id parallel.


Update: Oh I read your comment wrong, you wanted to hold the button down to keep shooting, not toggle it. In that case just modifythe conditional branch of first page a bit, it's easy.

Developer

For more support please join the Discord (link in description). The demo is a highly complex demonstration of what you can do with the plugin, I wouldn't recommend to modify things inside it but rather using the plugin to create a game from scratch.