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.

Erasing an event

Jason

Awesome Bro

Wow, thats really wierd, it starts off okay, but then as soon as you shoot where they are, the bullets come from that location, and then after a while you cant shoot anymore, and all the enemies erase one by one, thats freaky.
 
Ok, whats happening is that erasing an event doesn't get rid of the sprite or old sprite coordinates. This means when you shoot in a spot where they died the bullet will dissappear as if you shot something. So if you shoot an enemy while they are dead centre of the screen the bullets wont fire anymore (well they will, but they dissapear imediatly).

The reason for the bullets coming only from the middle is because they are relative to the screen , not the hero position. Also, theres a limited amount of bullets because it checks for more then 30 copies of the projectile class. I know of these issues and they are easliy fixable,

I just need someone "who knows how to script", "who knows how to script", "who knows how to script", "who knows how to script" who can show me a simple solution to my erasing event problem.

I also have another problem, because its checking all of the events for collision theres major lag with lots of events, how would I go about making it so that only events in range of the hero will be checked for collision?


Any help is appreciated.

-Charles-
 

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