Particles as animations :S

Place to get help with not working mods / modding interface.
ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

Particles as animations :S

Post by ficolas »

The particle definition:

Code: Select all

data:extend({
  {
    type = "particle",
    name = "alien-explosion",
    flags = {},
    life_time = 150,
    pictures = {
      {
        filename = "__F-mod__/resources/particles/alien-explosion.png",
        priority = "extra-high",
		frame_width = 91,
		frame_height = 45,
		frame_count = 13,
      },
    },
    shadows = {
      {
        filename = "__F-mod__/resources/particles/blank.png",
        priority = "extra-high",
		frame_width = 91,
		frame_height = 45,
		frame_count = 12,
      },
    }
  },
})
The image:
alien-explosion.png
alien-explosion.png (48.99 KiB) Viewed 1969 times
And the other image, is just... blank

Im using this command on the console:
game.createentity({position=game.player.character.getselected().position,name="alien-explosion",movement={0,0},frame_speed=2,vertical_speed=0,height=0})

The animation stops at a frame (different deppending on the frame_speed), what can I do to make it look good? D:

Also, my game randomly crashes when using that command :S
User avatar
rk84
Filter Inserter
Filter Inserter
Posts: 556
Joined: Wed Feb 13, 2013 9:15 am
Contact:

Re: Particles as animations :S

Post by rk84 »

Bit of late post, but I was just now testing this.
Every picture needs a shadow and even though it does not give error, framecount between picures and shadows needs to be exact same too. Size of the frame and line_length can be different.
Test mode
Searching Flashlight
[WIP]Fluid handling expansion
[WIP]PvP gamescript
[WIP]Rocket Express
Autofill: The torch has been pass to Nexela
Post Reply

Return to “Modding help”