User Tag List

Results 1 to 2 of 2

Thread: Funny things with NPC / Link -> ScriptTile

  1. #1
    Sir Nerd-A-Lot Just registered Bagu's Avatar
    Join Date
    Jan 2020
    Location
    Earthborn, heavenbound ...cast into HELL
    Age
    41
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    257
    Level
    5
    vBActivity - Bars
    Lv. Percent
    92.07%

    Funny things with NPC / Link -> ScriptTile

    ....





    Well, I always found it a lil annoying to create TileModifiers (and complete dedicated TilePages) for any custom Link animation.
    ...also I found it hillarious to hide the Engine Sprite (Link->Invisible) and use Dummies (FFC/LWeapon etc) for Custom Animations....

    And to handle everything by Link->ScriptTile (and scripted AFrames, ASpeed (animation Clk)) is unecessery effort.

    A very simple way to add flexible ScriptTile animations, and bypass those settings, if unwanted (and use regular engine animation)
    is to have an additional variable (I also call it ScriptTile) within a dedicated Animation Namespace. (Lets call it CustomAnimation)






    Having a line like the one below in your active global or hero script allows flexibility.
    Code:
     if(CustomAnimation::ScriptTile == 0){Link->ScriptTile = Link->Tile;} else{Link->ScriptTile = CustomAnimation::ScriptTile;}


    Finally you can assign Tile values to CustomAnimation::ScriptTile as you will, and assign Zero, to bypass ScriptTile features.
    ...you can also add arrays of various CustomTiles (size 4), (within the Namespace) to draw depending on Link->Dir.

    Example (wanna have a "Kicking" Tile ???):
    Code:
     CustomAnimation::ScriptTile = CustomAnimation::CustomTile_Kick[Link->Dir];
    .

    All that is also working fine, with NPC animations....


    I hope my english is good enough to explain what I mean.

    I was happy that I found out, this lil' trick.
    Last edited by Bagu; 02-27-2024 at 11:48 AM.

  2. #2
    Sir Nerd-A-Lot Just registered Bagu's Avatar
    Join Date
    Jan 2020
    Location
    Earthborn, heavenbound ...cast into HELL
    Age
    41
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    257
    Level
    5
    vBActivity - Bars
    Lv. Percent
    92.07%
    I guess, I'll load up a few brief example scripts, soon.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Armageddon Games is a game development group founded in 1997. We are extremely passionate about our work and our inspirations are mostly drawn from games of the 8-bit and 16-bit era.
Social