Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Summon a rock (or heavy objects) on hand.
#3
(04-29-2014, 11:35 AM)davis60 Wrote:  Freeze's sword summoning code
    DC-Code:
opoint:
      kind: 2  x: 42  y: 51  action: 35  dvx: 0  dvy: 0  oid: 213  facing: 0
   opoint_end:

and your weapon[since copied from rock] should not have any frame no. 35, it has only 10 as a frame designed to summon the weapon on hand
    DC-Code:
<frame> 10 on_hand
   pic: 5  state: 2001  wait: 0  next: 0  dvx: 0  dvy: 0  centerx: 29  centery: 56
   wpoint:
      kind: 2  x: 29  y: 56  weaponact: 35  attacking: 0  cover: 0  dvx: 0  dvy: 0 
   wpoint_end:
<frame_end>

Therefore, make action: 10 in the sword frame.

I already did. In fact, here's the code when summoning it:
Code:
<frame> 333 get_stone
   pic: 128  state: 15  wait: 7  next: 999  dvx: 2  dvy: 0  dvz: 0  centerx: 29  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
  sound: data\009.wav
   opoint:
      kind: 2  x: 42  y: 51  action: 10  dvx: 0  dvy: 0  oid: 321  facing: 0
   opoint_end:
   wpoint:
      kind: 1  x: 33  y: 22  weaponact: 10  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0
   wpoint_end:
   bdy:
      kind: 0  x: 5  y: 15  w: 45  h: 65
   bdy_end:
<frame_end>

The code for the rock is basically identical to the old one.


Quote:However, it is weird becoz after summoning it, he is holding it like he's holding a light weapon.
That's not possible unless you coded it to
[/quote]

I know... but that's what the character is doing. I hope I can capture a video. But basically, the character will try to swing the rock with the rock sprite gone, so you can't hit anything or anyone.[/code]


Reply
Thanks given by:


Messages In This Thread
RE: Summon a rock (or heavy objects) on hand. - by Justfight - 04-29-2014, 11:50 AM



Users browsing this thread: 1 Guest(s)