Game Maker is kind of notorious for being slow anyway, so it didn't take long for me to hit its limits. You should see an explosion on the enemy ship when it dies.Intro: Since I'm a pretty mediocre programmer, I often go for an easy solution to my coding problems rather than an efficient one. Drag the objParticleController into your start room and game room.This is to clean up the particles out of system memory when the game ends Create an Room End event on the player object, objPlayer.from the Particle System create a Particle 1 at the x and y co-ordinates of the enemy ship part_particles_create(global.P_System, x, y, global.Particle1, 50) Place the following statement inside that if condition.
#Particle designer game maker tutorial code#
Look at the code where you are checking if the enemies health has reached zero.
#Particle designer game maker tutorial series#
You define a series of parameters and the particle will be created to have a random spread of behaviours chosen from them. You can have many different types, each with their own range of colours, alphas, sizes and movements, but its important to note that you do not have control over individual particles. Create particle types: Particle types are the graphic effect itself.We use code to define a series of visual aspects and behaviours for our particles, and then we place them in the “container” so that we can take them out and use them whenever and wherever we need later. Create a particle system: The particle system is like a container that we will use to hold our different particle types ready for use.The basic setup for a particle system follows two steps: They are very useful for creating beautiful and flashy effects (or subtle and discreet ones!) like explosions, decals, rain, snow, star fields and debris in a game without the CPU overhead that using instances has. These properties cannot be manipulated directly for individual particles but are changed through the code that is used to define the individual particle and the system that it belongs to.
Particles are graphic resources that have certain properties which are defined within a particle system. Tutorial 17: Creating Particle Effects in GameMaker Studio 2 What are particle effects?