User Tag List

Results 1 to 2 of 2

Thread: Controllable jump height

  1. #1
    Gibdo
    Join Date
    Mar 2004
    Age
    33
    Posts
    868
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    2,836
    Level
    17
    vBActivity - Bars
    Lv. Percent
    30.76%
    Daily Activity
    0%
    Weekly Activity
    0%
    Monthly Activity
    0%

    Controllable jump height

    Hello devs, It came to my mind that would be a good idea as a quest rule or Roc's Feather that has an option to have a controllable jump height that link will jump at the item's max height as long as the item button is held. Like super mario bros, metroid, etc. Think of playing a metroid like quest when you have a very high jump boots to get to higher places, but when you are in a room where there is a low ceiling with spikes that you have to avoid hitting the ceiling spikes while your jumping from platforms / blocks. Just a thought if it's possible to implement. Thanks.

  2. #2
    Mad, Mad, Author ZoriaRPG's Avatar
    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    750
    Mentioned
    67 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    2,895
    Level
    17
    vBActivity - Bars
    Lv. Percent
    46.32%
    Daily Activity
    0%
    Weekly Activity
    33.5%
    Monthly Activity
    44.39%
    The issue here, is that you are referencing the types of games that are typically sideview quests, and almost all sideview quests use scripted jumping, whereby it would be trivial to do this type of jump mechanic.

    Something like this could work:

    Code:
    ffc script RocJumpTimed{
        void run(int timermax, int frames){
            int timer;
            while ( ( ( GettEquipmentA == I_ROCSFEATHER && Link->InputA ) || ( GetEquipmentB == I_ROCSFEATHER && Link->InputB ) ) && timer <= maxtimer ) {
                timer++;
                if ( timer % frames == 0 ) Link->Jump += height;
                Waitframe();
            }
            this->Data = 0; this->Script = 0; Quit();
        }
    }
    
    item script RocMario{
        void run(int maxtimer, int frames){
            int ff[]=RocJumpTimed";
            ffc f; int fff = Game->GetFFCScript(ff);
            for (int q = 1; q <= 32; q++){
                f = Screen->LoadFFC(q);
                if ( q-> Script == fff ) Quit();
            }
            int a[8]={maxtimer,frames};
            RunFFCScript(fff,a);
        }
    }
    Making the height of Ric' s Feather scale based on the number of frames of input could be an item editor option, but I doubt it would see much use...?
    Last edited by ZoriaRPG; 12-07-2016 at 12:00 AM.


    Script Headers: RPG.zh ( v. a0.97.1 ) ( RPG.zh Thread ) | stdArguments.zh (v.6.9.9/1) | | Timers.zh (v.1.5)
    ZScript | ZC Dev | ZC 2.53 | Alucard's: stdCombos.zh (v1.1) | stdWeapons.zh | particles.z
    All of the code that I create and publish here is free for use, modification and distribution under the GPL v2.0.

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