Prowler Productions
  Dink Smallwood Forum
  making an explosion spell

Post New Topic  
profile | register | faq

Author Topic:   making an explosion spell
Raptor777 posted 10-01- 05:00 PM CT (US)   Click Here to See the Profile for Raptor777   Click Here to Email Raptor777  
How would I go about making an explosion spell? (hell, how would I go about making a spell for that matter...)
Gerben posted 10-04- 04:16 AM CT (US)     Click Here to See the Profile for Gerben  Click Here to Email Gerben     
Check out the original scripts for spells as I have mentioned earlier. Spells consist of two scripts. One to make them a spellitem and one which controls their damage.

For fireball they are item-fb.c and dam-fb.c or somethoing like that. Read them and learn from them.

For exampole if you change the part which creates the making of the fireball sprite and change it to a sprite of a lightning flash, you would have a lightning bolt.

Explosion spells are tricky. Because you need the coordinates of the enemy sprite. Using the spell on Dink is easier, because Dink´s coordinates are game variables. But the current coordinates of the target sprite are harder to come by. So it would be a lot of work to make the explosion sprite appear over the enemy sprite. I guess you could make a very fast invisible sprite which targets the enemy like a creature. Then you could make it explode after a second or so. Or make it explode when it coes into contact with the enemy. But it will take a bit of work. work.

Nexis posted 10-04- 01:28 PM CT (US)     Click Here to See the Profile for Nexis  Click Here to Email Nexis     
Actually, it wouldn't take too much work at all to make it explode on enemies. Check out the magic used in George's Birth of an Empire which has a spell that target's enemies (but remove the manual enemy selector from the spell if you do use that because it's annoying and causes game lock ups).

Post New Topic  Post Reply
Hop to:


Contact Us | Prowler Productions

Powered by: Ultimate Bulletin Board, Freeware Version 5.10a
Purchase our Licensed Version- which adds many more features!
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 2000.