Jump to content

Photo

Large Enemy Help


  • Please log in to reply
2 replies to this topic

#1 Cukeman

Cukeman

    "Tra la la, look for Sahasrahla. ... ... ..."

  • Banned
  • Location:Hyrule/USA

Posted 04 January 2012 - 05:00 PM

How would I go about making a 32x32 Tektite that shoots fireballs?
As far as sprites, I'll want to make one that faces left, one that faces
right, and a firing sprite for each direction. And can I increase his
jump height?

#2 Russ

Russ

    Caelan, the Encouraging

  • Administrators
  • Location:Washington

Posted 04 January 2012 - 05:12 PM

For a 32x32 tektite, you'll need a script. Fortunately, I believe a script like that exists in the script database... somewhere. To the best of my knowledge, tektites can't be assigned weapons, so you'd need to script that too. But that's easy enough, the script would just attack a fireball shooter to him.

#3 Orithan

Orithan

    Studying Scientist - Commission from Silvixen

  • Members
  • Location:Australia

Posted 04 January 2012 - 06:02 PM

QUOTE(Russ @ Jan 5 2012, 09:12 AM) View Post
For a 32x32 tektite, you'll need a script. Fortunately, I believe a script like that exists in the script database... somewhere. To the best of my knowledge, tektites can't be assigned weapons, so you'd need to script that too. But that's easy enough, the script would just attack a fireball shooter to him.


The weapon doesn't have to be hardcoded by the script, as Tektites CAN be assigned weapons via the enemy editor, but they can't be used unless scripted to do so. For the enemy editor to tell the script to use the weapon that is assigned to the enemy, use npc->Weapon in something like this (may not be nessarly correct code):

CODE
npc tektite = Screen->CreateNPC(NPC_TEKTITE1);
[...] //Whatever code goes here.
FireEWeapon4Way(tektite->Weapon);



Edited by Orin XD, 04 January 2012 - 06:04 PM.



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users