Skip to main content

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

How to load particle sprites

A topic by yugi yanagui created Nov 12, 2022 Views: 305 Replies: 2
Viewing posts 1 to 2
(1 edit)

I played SLATRA and was impressed by the state machine with the enemy meat pieces flying around and wanted to create something similar.

However, I am failing because I don't know how to specify the meat piece sprite (the "imageindex" part) when using the PARTICLES command in the enemy state machine. Does anyone know how to load particle sprites?

You don't load them separately: if you want to use particle inside the state file, you just add extra sprite into the image roster. So, if, for example, you have an enemy/object with sprites loaded through string like "image test 0 9", then to use particle you just need to add extra sprite with particle image named "test 10" and load it with the rest of sprites, hence the string will now look like "image test 0 10". Then you just assign the sprite number 10 to be used every time you call for the PARTICLE effect. There is more info on scripts and states in old version manual. It's entirely in Russian, but it can be google translated if you want.

I was under the mistaken impression that I was supposed to put the images in the particle folder for a long time, so I'm glad to know that. However, it doesn't work so I still need to do some trial and error to adjust the parameters.