Jump to content

Photo

Stuck/Ricochet Arrow Script


  • Please log in to reply
2 replies to this topic

#1 Linkus

Linkus

    .

  • Members
  • Real Name:Adam

Posted 28 November 2007 - 05:08 PM

Just wondering, is it possible to overwrite the "Smack" sprite that appears when the arrow hits something? Like for example, if the arrow hits wood, it would get stuck and wobble a bit, but if it hits metal or stone, it would ricochet off the object and spin until it hit the ground or even change course, which can be used for puzzles.

If so, I'd like an item script that I can apply to the arrows.

#2 Joe123

Joe123

    Retired

  • Members

Posted 28 November 2007 - 05:19 PM

ZScript has no way of following where Link's weapons are. I don't think.
So not conventionally.

You could, if you wanted, rescript the bow and arrow to be an FFC weapon though.

#3 Gleeok

Gleeok

    It's dangerous to dough alone, bake this.

  • Members
  • Real Name:Pillsbury
  • Location:Magical Land of Dough

Posted 10 December 2007 - 10:17 PM

Uhhhhhhhhhhhhhhhhhhhhh....OK got it, you set the arrow misc animation to "none", then add a item script to the bow to shoot a ffc at matching arrow velocity, run an enemy loop and check solidity then set FFC->Data to a wobbly smack sprite once it hits something, set its Vx and y to 0, use Game->ClearSprites(SL_LWPNS);, and finally combo cycle back to a transparent tile after about 80 or so ticks, you could add ice or fire arrow animation also...whew...how's that?


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users