Recently added particle systems


Randomly selected particle systems

Game Maker Pro Tutorial

This is Game Maker tutorial it contains basic information needed to use particles in your games created in this software. More sophisticated tutorials can be found on the web. We will present some screen shots and explain each step briefly. Important information is that if you want use particle systems in your game created in Game Maker you should have the PRO version. If you have the LITE (free) version which can be downloaded {here} you can still use particles in that version go to {Game Maker Lite tutorial} on our site.

Creating custom made particles in the Game Maker PRO

1. Load your game/project or start new one in the Game Maker like in the image bellow



2. Click the right mouse button on the Rooms node and select Create Room. This is necessary because game can not work without a room.



3. When the window of the new room appears. Click the background tab and select color. We will use a black color in this tutorial.



4. You can select settings tab to change room speed. Room speed indicate how many frames Game Maker displays in one second so larger numbers means faster object movement and particles speed.



5. Click the right mouse button on Objects node and select Create Object.



6. In the object window you can change object name. Click Add Event button



7. In the new window that will show up select Create.



8. Click that event and on the right find Control tab. In the Control tab select Code object. You can drag and drop it or click it with the right mouse button.



9. In the new window that will appear write code / paste code from below / download particles from our site (GML) and copy-paste it to that window. When you are pasting code be sure to remove the following line <<< #define scr_particle >>> (if such exists).

This is example code you can paste:

Sname = part_system_create()

particle1 = part_type_create()
part_type_shape(particle1,pt_shape_flare)
part_type_size(particle1,0.10,0.10,0,0)
part_type_scale(particle1,3.87,1.20)
part_type_color3(particle1,3559731,12127414,2650709)
part_type_alpha3(particle1,0.51,0.80,0.09)
part_type_speed(particle1,3.06,6.45,-0.12,0)
part_type_direction(particle1,0,359,-1,0)
part_type_gravity(particle1,0,270)
part_type_orientation(particle1,0,0,0,0,1)
part_type_blend(particle1,1)
part_type_life(particle1,45,70)

emitter1 = part_emitter_create(Sname)
part_emitter_region(Sname,emitter1,x,x,y,y,0,0)
part_emitter_stream(Sname,emitter1,particle1,10)



10. Click the highlighted button to close code editor.



11. Click OK button to close object editor.



12. Click Object tab in the room editor and click in the area below tabs. In the menu that will appear select object0 (or any other).



13. Click on the grid area (room) with left mouse button to place that object in the room. Finally click green play button to run your game.



14. Well done !!! you have your particle in the game.



Was that tutorial helpful ? write to us





Please support further development of this site and related software. Every donated dollar will be helpful.


Copyright 2009 (C) GMParticles.com. All rights reserved.