Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Creating Multiple Objects "Projectiles"

I'm already working on something like this if you can possibly wait a few weeks for me to get a releasable version finished.  ^_^  Perhaps you could work on mapping and other things in the mean time?
 
I've got half of an ABS done which require some MACL scripts....

"RGSS.Map"
"Modules.Event_Spawner"

The Event_Spawner allows you the freedom to create events anywhere in your game (without having to pre-set them up in the Editor), so if you really wanted you could have your character fire 100 'arrow' events without having to actually create 100 events, then have the events delete themselves after they're done running (so it doesn't clog up your game). I notice this is how ABS systems handle 'projectiles' is through pre-created events, but I'm sure there's an even better way to do it like maybe an animation system or something. Good luck :thumb:
 

e

Sponsor

Projectiles are basically sprites (graphics) on which a translation (gliding, movement along the x-y axis) is performed over time, either in a parabola (quadratic equation) or a line (linear equation).

My Special Effects stuff covers such things for simple graphics; someone would have to integrate it within the battle system, I suppose. Maybe Kain? :p
 
If you wanted to you could do the following. Create an array as a global variable, load it up with what ever events you want to use for projectiles. Then put a method into game_event that takes an event from the array, clones it, set's up its x, y, etc.; then load it inot $game_map.event and update scene_maps @spriteset to include the events sprite. Then, whenever you call the method it will place the event where you want it. The event itself can handle removing itself, or you could add an additional method to pop it out of the events array; though that would be uneccessary.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top