(Script) Call animated GIF in game

apescott

Member
I'd like to call an animated gif in game when an enemy dies. Would playgif work?

Code:
anim	fall
	jumpframe	0 2.6 -1.4
	landframe	2
	loop	0
	offset	238 177
	bbox	0 0 0 0
	move	0
	delay	1
        @cmd    playgif data/chars/bred/dicon.gif 25 36 0
	frame	data/chars/bred/fall001.gif
	move	0
	attack	212 110 43 39 12 1 0 0 20 0
	delay	37
	frame	data/chars/bred/fall001.gif
	delay	1
	frame	data/chars/bred/fall002.gif

How would I make a playgif script or one that would call the animated gif at death?

[attachment deleted by admin]
 
Why don't you just spawn entity which moves together with screen instead? it's easier to script this since the spawn location must be specific.

Though this and your idea don't prevent you from putting X in wrong icon of enemy. IOW you can't tell which icon of enemy is being shown when X is being displayed on top of it.
 
Bloodbane said:
Why don't you just spawn entity which moves together with screen instead? it's easier to script this since the spawn location must be specific.

Though this and your idea don't prevent you from putting X in wrong icon of enemy. IOW you can't tell which icon of enemy is being shown when X is being displayed on top of it.

Thanks Blood :) That would be easier to do, but playgif allows me to point to the file that contains that specific enemies icon with the ''X''.
If I did it your way how would I be able to point to a certain file? =] If I did use playgif how would I set it up in my icond.c?
 
You use an entity for the blinking X and the name of this entity is how you spawn it with script.
As for playgif, sorry, I never use it so I can't help you with that :)
 
Bloodbane said:
You use an entity for the blinking X and the name of this entity is how you spawn it with script.
As for playgif, sorry, I never use it so I can't help you with that :)

Thanks Blood! :)
I'll do that instead, but should I just make a spawner in my script.c then have an icond load it up as it's animationscript?
How would that coding look? I have a general idea, but I might need some assistance lol
 
Back
Top Bottom