Users browsing this thread: 1 Guest(s)
Harp Weapon Tutorial

#27
Posts: 35
Threads: 2
Thanks Received: 0
Thanks Given: 0
Joined: Apr 2018
Reputation: 2
Status
Afterglow
(06-28-2020, 08:42 PM)Everything Wrote: I'm not totally sure how to fix that. You may need to add "branch to $xxxx if character already stepped forward to attack" and "move forward 24" right before "calculate vector from attacker to target", similar to the GP rain script.

I tried, but I didn't seem to make any sort of difference.  I'm not sure if I'm just confused by how to code branches properly, but I must have played with those codes for hours and nothing happened.
Code:
D0/65D4: 00 20                    speed 1, align to center of character/monster
D0/65D6: D1 01                    invalidate character/monster sprite priority
D0/65D8: 85                       move to attacker position
D0/65D9: DB 06                    branch to $65DF if character already stepped forward to attack
D0/65DB: 83 77                    move forward 24
D0/65DD: 89 07                    loop start (7 times)
D0/65DF: 0F                       [---]
D0/65E0: 8A                       loop end

D0/65E1: 95                       calculate vector from attacker to target
D0/65E2: C9 00                    play default sound effect
D0/65E4: 80 5D                    command $80/$5D
D0/65E6: 98 04 01                 increment frame offset every 4 loops (0..1)
D0/65E9: 00                       [$00]
D0/65EA: 92 02 08                 move along vector at speed 2, branch to $063D
D0/65ED: 80 4E                    clear frame offset
D0/65EF: 80 5D                    command $80/$5D
D0/65F1: BF 2F 07                 jump to subroutine $072F
D0/65F4: FF FF                    end of script
  Find
Quote  



Messages In This Thread
Harp Weapon Tutorial - by Mutteo - 06-18-2020, 12:05 AM
RE: Harp Weapon - by Gi Nattak - 06-18-2020, 01:55 AM
RE: Harp Weapon - by Mutteo - 06-18-2020, 11:00 AM
RE: Harp Weapon - by PowerPanda - 06-18-2020, 09:34 AM
RE: Harp Weapon - by Morendo - 06-19-2020, 02:48 AM
RE: Harp Weapon - by Mutteo - 06-19-2020, 11:07 AM
RE: Harp Weapon - by C-Dude - 06-19-2020, 09:20 PM
RE: Harp Weapon - by Mutteo - 06-20-2020, 03:11 PM
RE: Harp Weapon - by C-Dude - 06-20-2020, 03:43 PM
RE: Harp Weapon - by Mutteo - 06-20-2020, 04:35 PM
RE: Harp Weapon - by C-Dude - 06-20-2020, 06:58 PM
RE: Harp Weapon - by SSJ Rick - 06-20-2020, 07:19 PM
RE: Harp Weapon - by Mutteo - 06-20-2020, 08:05 PM
RE: Harp Weapon - by SSJ Rick - 06-20-2020, 11:41 PM
RE: Harp Weapon - by Mutteo - 06-21-2020, 12:24 AM
RE: Harp Weapon - by SSJ Rick - 06-27-2020, 03:16 PM
RE: Harp Weapon - by Mutteo - 06-27-2020, 07:02 PM
RE: Harp Weapon - by Everything - 06-27-2020, 10:33 PM
RE: Harp Weapon - by Mutteo - 06-27-2020, 10:53 PM
RE: Harp Weapon - by SSJ Rick - 06-28-2020, 01:10 AM
RE: Harp Weapon - by Mutteo - 06-28-2020, 01:24 AM
RE: Harp Weapon - by Everything - 06-28-2020, 11:12 AM
RE: Harp Weapon - by Mutteo - 06-28-2020, 12:57 PM
RE: Harp Weapon - by Everything - 06-28-2020, 05:50 PM
RE: Harp Weapon - by Mutteo - 06-28-2020, 07:03 PM
RE: Harp Weapon - by Everything - 06-28-2020, 08:42 PM
RE: Harp Weapon - by Mutteo - 06-29-2020, 02:48 AM
RE: Harp Weapon - by Everything - 06-29-2020, 09:14 AM
RE: Harp Weapon - by Mutteo - 06-29-2020, 02:14 PM
RE: Harp Weapon Tutorial - by SSJ Rick - 07-03-2020, 01:53 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite