User Tag List

Results 1 to 10 of 10

Thread: Hold out

  1. #1
    Octorok Lelouche Vi Britannia's Avatar
    Join Date
    Oct 2015
    Location
    Britannia - Area 11
    Posts
    173
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,107
    Level
    11
    vBActivity - Bars
    Lv. Percent
    44.09%

    Question Hold out

    Quick script question. When scripting a weapon, how do I set what sprite is used when the weapon is held and visible when used (like swords and wands)? I can't find the function / command to do it.
    Lost my wings and grew 8 tentacles... I've seen enough Hentai to know where this is going....

  2. #2
    The Timelord
    QDB Manager
    ZC Developer

    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,396
    Mentioned
    112 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    4,760
    Level
    21
    vBActivity - Bars
    Lv. Percent
    68.7%
    Code:
    lweapon l;
    l->UseSprite(sprite);
    l->Tile = tile;
    l->Flip = flip;
    Those are your options.

  3. #3
    Octorok Lelouche Vi Britannia's Avatar
    Join Date
    Oct 2015
    Location
    Britannia - Area 11
    Posts
    173
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,107
    Level
    11
    vBActivity - Bars
    Lv. Percent
    44.09%
    I assume for sprite I'd use the sprites number found under graphics. When would I need to use Flip?
    Last edited by Lelouche Vi Britannia; 09-08-2016 at 06:16 PM.
    Lost my wings and grew 8 tentacles... I've seen enough Hentai to know where this is going....

  4. #4
    Octorok Lelouche Vi Britannia's Avatar
    Join Date
    Oct 2015
    Location
    Britannia - Area 11
    Posts
    173
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,107
    Level
    11
    vBActivity - Bars
    Lv. Percent
    44.09%
    Answered question about multiple lweapons. New problem, getting the wand to face the right direction. It's stuck pointing up. Tried using Flip, but I guess I'm not doing it right.
    Last edited by Lelouche Vi Britannia; 09-08-2016 at 08:32 PM.
    Lost my wings and grew 8 tentacles... I've seen enough Hentai to know where this is going....

  5. #5
    The Timelord
    QDB Manager
    ZC Developer

    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,396
    Mentioned
    112 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    4,760
    Level
    21
    vBActivity - Bars
    Lv. Percent
    68.7%
    Quote Originally Posted by Lelouche Vi Britannia View Post
    Answered question about multiple lweapons. New problem, getting the wand to face the right direction. It's stuck pointing up. Tried using Flip, but I guess I'm not doing it right.
    That's where you use l->Tile and l->Flip: You want to set up a pair of tiles, one facing up, the next tile on the page facing right. Set l->Tile to the first of the two, and if Link->Dir == DIR_DOWN, set its flip to flip down. If Link->Dir == DIR_LEFT or DIR_RIGHT, use l->Tile++ and set the Flip based on his direction.

  6. #6
    Octorok Lelouche Vi Britannia's Avatar
    Join Date
    Oct 2015
    Location
    Britannia - Area 11
    Posts
    173
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,107
    Level
    11
    vBActivity - Bars
    Lv. Percent
    44.09%
    Ok, got that working now. Thanks for your help. But now I have a new question. How do I set up the auto flash. I'm trying to flash the projectiles between CSet 6and CSet 0 just like the wand magic does. I'm not good with bool so please bare with me.
    Lost my wings and grew 8 tentacles... I've seen enough Hentai to know where this is going....

  7. #7
    The Timelord
    QDB Manager
    ZC Developer

    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,396
    Mentioned
    112 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    4,760
    Level
    21
    vBActivity - Bars
    Lv. Percent
    68.7%
    Quote Originally Posted by Lelouche Vi Britannia View Post
    Ok, got that working now. Thanks for your help. But now I have a new question. How do I set up the auto flash. I'm trying to flash the projectiles between CSet 6and CSet 0 just like the wand magic does. I'm not good with bool so please bare with me.

    The projectiles are sprites, so, in the sprite editor, tick 'Flash CSet'.

  8. #8
    Octorok Lelouche Vi Britannia's Avatar
    Join Date
    Oct 2015
    Location
    Britannia - Area 11
    Posts
    173
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,107
    Level
    11
    vBActivity - Bars
    Lv. Percent
    44.09%
    *REDACTED* I shouldn't post just after waking up. I realized my stupidity after I posted it. As usual I'm making a mountain out of a molehill.
    Last edited by Lelouche Vi Britannia; 09-14-2016 at 05:33 AM. Reason: I'm a dumbass when I first wake up
    Lost my wings and grew 8 tentacles... I've seen enough Hentai to know where this is going....

  9. #9
    The Timelord
    QDB Manager
    ZC Developer

    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,396
    Mentioned
    112 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    4,760
    Level
    21
    vBActivity - Bars
    Lv. Percent
    68.7%
    Quote Originally Posted by Lelouche Vi Britannia View Post
    *REDACTED* I shouldn't post just after waking up. I realized my stupidity after I posted it. As usual I'm making a mountain out of a molehill.
    Have it all sorted now, then?

  10. #10
    Octorok Lelouche Vi Britannia's Avatar
    Join Date
    Oct 2015
    Location
    Britannia - Area 11
    Posts
    173
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,107
    Level
    11
    vBActivity - Bars
    Lv. Percent
    44.09%
    Yes. Just need to experiment with the x and y placement to make the weapon tile look right.
    Lost my wings and grew 8 tentacles... I've seen enough Hentai to know where this is going....

Thread Information

Users Browsing this Thread

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

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