Jump to content

Photo

Change Bomb explosion sprite?


  • Please log in to reply
2 replies to this topic

#1 idontknow8

idontknow8

    Senior

  • Members

Posted 15 August 2016 - 10:23 AM

Is there a way to script a different bomb explosion sprite?  I want to keep the default explosion for the default bombs but I have a scripted bomb where the bomb itself should look different (which it does) but also the explosion should look different too and I can't figure that out.

 

I tried the following code & it doesn't work:

lweapon blast = LoadLWeaponOf(LW_BOMBBLAST);
blast->UseSprite(127);

127 is the number of the sprite to use.  It compiles fine but doesn't do anything.



#2 Shadowblitz16

Shadowblitz16

    Illustrious

  • Members

Posted 07 January 2017 - 02:52 PM

I would like to know this as well 

I want to create gameboy styled bombs which use 4 frames of 2x2 tiles



#3 Timelord

Timelord

    The Timelord

  • Banned
  • Location:Prydon Academy

Posted 08 January 2017 - 12:01 AM

Bomb sprites are hardcoded. In the sprite editor, use blank tiles for them, and either DrawTile() calls, or generate dummy weapons that have other sprtes, from your global active script at the explosion coordinates. There is no way tomodify them otherwise.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users