Jump to content

Photo

Moving enimies


  • Please log in to reply
2 replies to this topic

#1 EssenceOfHyrule

EssenceOfHyrule

    Recipient of Ways

  • Members

Posted 26 February 2007 - 05:05 PM

I believe it is possible to change the XY coordinates of an NPC, all I ask is what is the variable called?

EDIT: Never mind, got it. Anyway, is it possible to retrieve the NPC's direction/distance from Link?

Edited by EssenceOfHyrule, 26 February 2007 - 05:10 PM.


#2 Revfan9

Revfan9

    Hero of Time

  • Banned
  • Real Name:Dr. Pajamas
  • Location:In front of a screen

Posted 26 February 2007 - 05:15 PM

Well, here's my near-useless Zasm advice.

Well, the only way to do that is to use a series of checks.

COMPAREV linkx,npcx
GOTOMORE RIGHT
GOTOLESS LEFT

That can find whether Link is left or right from the NPC.

RIGHT SETR d0,npcx
SUBR d0,linkx

Will get the distance from Link to the NPC, in pixels. Use ADDR instead of SUBR for left.

#3 EssenceOfHyrule

EssenceOfHyrule

    Recipient of Ways

  • Members

Posted 26 February 2007 - 05:16 PM

Oh, shoulda said, I'm doing ZScript.

Edited by EssenceOfHyrule, 26 February 2007 - 05:19 PM.



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users