Legend of zelda 1 link

Projects that have specifically been abandoned or considered "dead" get moved here, so people will quit bumping them. If your project has wound up here and it should not be, contact a moderator to have it moved back to the land of the living.
doknow
Posts: 9
Joined: Tue Apr 01, 2008 11:36 pm

Legend of zelda 1 link

Post by doknow »

I'm using decorate to make link.

I have all the sprites including the sword beam.

How do I use A_CustomMissile and A_CustomMeleeAttack to attack with a sword and shoot projectiles correctly?

Code: Select all

actor link 22344
{
  health 100
  radius 30
  height 48
  mass 100
  speed 8
  painchance 255
  Scale 1.50
  painsound "LOZH"
  MONSTER
  +FLOORCLIP
  states
  {
  Spawn:
    LINK AB 10 A_Look
    loop
  See:
    LINK AABB 3 A_Chase
    loop
  Melee:
    LINK PC 8 A_FaceTarget
    LINK PC 6 A_CustomMeleeAttack (random[LOZSWORD](3,9))
    goto See
  Pain:
    LINK G 1 A_PlaySound ("LOZHURT")
    LINK DEFGDEFGDEFGDEFGDEFG 2 
    goto See
  Death:
    LINK G 2 A_PlaySound ("LOZHURT")
    LINK DEFGDEFGDEFGDEFGDEFG 2 
    LINK H 5 A_PlaySound ("LOZDEATH")
    LINK I 5 
    LINK J 5
    LINK K 5 
    LINK H 5
    LINK I 5 
    LINK J 5
    LINK K 5 
    LINK H 5
    LINK I 5 
    LINK J 5
    LINK K 5 
    LINK H 5
    LINK I 5 
    LINK J 5
    LINK K 5 
    LINK L 6 A_NoBlocking
    LINK M 5
    LINK N 5 
    LINK O -1
    stop
  Raise:
    LINK NML 5
    goto See
  }
}

User avatar
Ceeb
Posts: 5125
Joined: Wed Jun 11, 2008 4:07 pm
Location: Castle Wut

Re: Legend of zelda 1 link

Post by Ceeb »

I think this belongs in editing.
User avatar
Dreadopp
Posts: 453
Joined: Sun Mar 23, 2008 3:42 am
Location: Wherever you want...

Re: Legend of zelda 1 link

Post by Dreadopp »

I think what you are trying to do is make him swing and shoot at the same time? Well I think you could do it like this:

Code: Select all

    actor link 22344
    {
      health 100
      radius 30
      height 48
      mass 100
      speed 8
      painchance 255
      Scale 1.50
      painsound "LOZH"
      MONSTER
      +FLOORCLIP
      states
      {
      Spawn:
        LINK AB 10 A_Look
        loop
      See:
        LINK AABB 3 A_Chase
        loop
      Melee:
        LINK PC 8 A_FaceTarget
        LINK PC 6 A_CustomMeleeAttack (random[LOZSWORD](3,9))
        LINK C 0 A_CustomMissile ("swordbeamname", 0, 0, 0)
        goto See
      Pain:
        LINK G 1 A_PlaySound ("LOZHURT")
        LINK DEFGDEFGDEFGDEFGDEFG 2
        goto See
      Death:
        LINK G 2 A_PlaySound ("LOZHURT")
        LINK DEFGDEFGDEFGDEFGDEFG 2
        LINK H 5 A_PlaySound ("LOZDEATH")
        LINK I 5
        LINK J 5
        LINK K 5
        LINK H 5
        LINK I 5
        LINK J 5
        LINK K 5
        LINK H 5
        LINK I 5
        LINK J 5
        LINK K 5
        LINK H 5
        LINK I 5
        LINK J 5
        LINK K 5
        LINK L 6 A_NoBlocking
        LINK M 5
        LINK N 5
        LINK O -1
        stop
      Raise:
        LINK NML 5
        goto See
      }
    }

I added a line just below the A_CustomMeleeAttack. That should make Link fire a projectile when he finishes his attack at frame C. NOTE: You can adjust the numbers to make the beam come out of a different spot. It will probably look better than it would at 0, 0, 0.
User avatar
XutaWoo
Posts: 4005
Joined: Sat Dec 30, 2006 4:25 pm
Location: beautiful hills of those who are friends

Re: Legend of zelda 1 link

Post by XutaWoo »

Code: Select all

        LINK PC 6 A_CustomMeleeAttack (random[LOZSWORD](3,9))
        LINK C 0 A_CustomMissile ("swordbeamname", 0, 0, 0)
If you use that code replace the code above with

Code: Select all

        LINK C 0 A_CustomMissile ("swordbeamname", 0, 0, 0)
        LINK PC 6 A_CustomMeleeAttack (random[LOZSWORD](3,9))
or else the beam would come after the attack.

Also, you should have a Missile state like this:

Code: Select all

      Missile:
        goto Melee
doknow
Posts: 9
Joined: Tue Apr 01, 2008 11:36 pm

Re: Legend of zelda 1 link

Post by doknow »

Image
You do not have the required permissions to view the files attached to this post.

Return to “Abandoned/Dead Projects”