Not logged inOpenClonk Forum
Up Topic [Particles] Fire

This board is threaded (i.e. has a tree structure). Please use the Reply button of the specific post you are referring to, not just any random button. If you want to reply to the topic in general, use the Post button near the top and bottom of the page.

Post Reply
In Response to Pyrit
I have once made some sort of fire sparks. Maybe they'd look good with that? The graphics for them would be "Magic". Kind of like...

global func Particles_Glimmer()
{
  return
  {
      Size = PV_Linear(1, 0),
      ForceY = RandomX(-50, -60),
      ForceX = PV_Random(-1, 1, 10),
      DampingY = PV_Linear(600, 0),
      Stretch = PV_Speed(1000, 500),
      Rotation = PV_Direction(),
      CollisionVertex = 500,
      OnCollision = PC_Stop(),
      R = 255,
      G = PV_Linear(128,32),
      B = PV_Random(0, 128, 2),
      Alpha = PV_Random(255,0,3),
      BlitMode = GFX_BLIT_Additive,
  };
}


So something like

CreateParticle("Magic", int x, int y, int speed_x, int speed_y, int lifetime, Particles_Glimmer(), int amount);

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill