Powered by Invision Power Board

 
  Pages: (2) 1 [2]  ( Go to first unread post ) Reply to this topicStart new topicStart Poll

> Triple Jumping, I'm clueless
Canada
Mewizkuit
Posted: Jul 17 2008, 08:41 PM
Quote Post


CHARMANDER
[*][*][*][*]

Group Icon
Group: Members
Posts: 4397
Member No.: 2508
Joined: 16-August 06

Status: (0d) [--]


If gamemaker use variables.
Get the game to set a variable when you hit the ground and wait a second or so before switching it off. If you jump when the variable is still set, make yourself jump higher, ect.


--------------------
QUOTE
whenever i feel like clicking "reply"
i stop and think to myself, "why"
will it be a post to be remembered by?
or will i scare off a n00b and tell him to die?
PMEmail PosterMSN
Top
Brazil
Drezus
Posted: Jul 17 2008, 09:29 PM
Quote Post


ASH STARES INTO YOUR CHEEKS
[*][*]

Group Icon
Group: Members
Posts: 2236
Member No.: 2670
Joined: 15-September 06

Status: (0d) [--]


yeah, variables solves all. I did mid-air jumping once using almost this same method, too. It reseted when you touched the floor, and it would change if you jumped once.


--------------------
user posted image
--------------------
user posted image

user posted image
PMEmail PosterIntegrity Messenger IMMSN
Top
United States
Mr. Bird
Posted: Jul 18 2008, 10:38 AM
Quote Post


SUPAH DUPAH
[*][*]

Group Icon
Group: Members
Posts: 1402
Member No.: 4601
Joined: 20-October 07

Status: (0d) [--]


I tried that I had soem problems..


--------------------
PMEmail Poster
Top
Unspecified
Draco Icebane
Posted: Jul 18 2008, 06:38 PM
Quote Post


Standard Member
[*][*][*][*][*]


Group Icon
Group: Banned
Posts: 52997
Member No.: 10
Joined: 13-October 03

Status: (71582612m) [XX]


Pseudocode:

if ( key(JUMP) && jump_count < 3 ) {
jump_count++;
jump_delay = 0;
jump(); // Whatever the code is to start a jump
}

if ( Player1.onground && jump_count > 0 ) {
if ( jump_delay >= 10 ){
jump_delay = 0;
jump_count = 0;
{ else {
jump_delay++;
}
}

This post has been edited by Draco Icebane on Jul 18 2008, 06:38 PM
PM
Top
Unspecified
mr.mario
Posted: Jul 18 2008, 07:00 PM
Quote Post


and you people thought Mugen coded in GML would never work
[*][*][*]

Group Icon
Group: Members
Posts: 4755
Member No.: 2349
Joined: 17-July 06

Status: (0d) [--]


QUOTE (Razz @ Jul 17 2008, 08:25 PM)
well he's right


try having a variable called triple_jump that goes up every time you jump and land, but then resets itself shortly after you land (This way you don't do a triple jump out of nowhere)

also be sure to make it so that the variable resets itself after you do the third jump

thats exactly what my code is in a nutshell


--------------------
mr.mario's emulated music engine(gamemaker)http://archive.mfgg.net/index.php?showtopic=214636here

Gmugen: here
PMEmail Poster
Top
United States
MrGuy
Posted: Jul 18 2008, 07:49 PM
Quote Post


NO WAY also im gay
[*][*][*]

Group Icon
Group: Members
Posts: 424
Member No.: 4680
Joined: 9-November 07

Status: (0d) [--]


Yeah, I use the variable method too for my triple jumping in Super Mario Legacy, except I don't have it timed absolute, in seconds; instead, I have a counter which resets and starts to increment itself when Mario hits the ground. When it reaches a certain number, it resets itself, and a double/triple jump is no longer possible at this point.

If you do jump in the timeframe, a variable called typeOfJump is incremented (unless it already equals 2, which is a triple jump). The jump height and animation for Mario are chosen based on if statements of this variable.
PMEmail Poster
Top
United States
SuperMarioMaster
Posted: Jul 18 2008, 08:06 PM
Quote Post


It's been real
[*]

Group Icon
Group: Members
Posts: 2145
Member No.: 4476
Joined: 22-September 07

Status: (0d) [--]


QUOTE (Draco Icebane @ Jul 18 2008, 07:38 PM)
Pseudocode:

if ( key(JUMP) && jump_count < 3 ) {
jump_count++;
jump_delay = 0;
jump(); // Whatever the code is to start a jump
}

if ( Player1.onground && jump_count > 0 ) {
if ( jump_delay >= 10 ){
jump_delay = 0;
jump_count = 0;
{ else {
jump_delay++;
}
}

This looks good I'll try this
oh btw the variable thing is impossible


--------------------
PMEmail Poster
Top
United States
MrGuy
Posted: Jul 18 2008, 09:07 PM
Quote Post


NO WAY also im gay
[*][*][*]

Group Icon
Group: Members
Posts: 424
Member No.: 4680
Joined: 9-November 07

Status: (0d) [--]


QUOTE (SuperMarioMaster @ Jul 18 2008, 09:06 PM)
This looks good I'll try this
oh btw the variable thing is impossible

Actually, now that I've done a full examination of it, Draco's code is pretty much what I was talking about in the earlier post.

Unless you're talking about Dr. Light's/Chronii's post.

This post has been edited by MrGuy on Jul 18 2008, 09:08 PM
PMEmail Poster
Top
Unspecified
Draco Icebane
Posted: Jul 18 2008, 09:11 PM
Quote Post


Standard Member
[*][*][*][*][*]


Group Icon
Group: Banned
Posts: 52997
Member No.: 10
Joined: 13-October 03

Status: (71582612m) [XX]


QUOTE (SuperMarioMaster @ Jul 18 2008, 06:06 PM)
This looks good I'll try this
oh btw the variable thing is impossible

... this is the shortest contradiction I've ever seen. fjsdfjdsg

My post there uses two variables. That's "the variable thing".
PM
Top
United States
SuperMarioMaster
Posted: Jul 19 2008, 07:17 AM
Quote Post


It's been real
[*]

Group Icon
Group: Members
Posts: 2145
Member No.: 4476
Joined: 22-September 07

Status: (0d) [--]


QUOTE (Draco Icebane @ Jul 18 2008, 10:11 PM)
... this is the shortest contradiction I've ever seen. fjsdfjdsg

My post there uses two variables. That's "the variable thing".

I meant the one I tried, sorry
QUOTE
Unless you're talking about Dr. Light's/Chronii's post.

Yea, kinnda
EDIT: spelling

This post has been edited by SuperMarioMaster on Jul 19 2008, 07:25 AM


--------------------
PMEmail Poster
Top
United States
SuperMarioMaster
Posted: Jul 20 2008, 07:30 AM
Quote Post


It's been real
[*]

Group Icon
Group: Members
Posts: 2145
Member No.: 4476
Joined: 22-September 07

Status: (0d) [--]


Ok finally trying Dracos code

But I need to know what are the 2 variables and what do I set them to


--------------------
PMEmail Poster
Top
United States
SuperMarioMaster
Posted: Jul 20 2008, 07:31 AM
Quote Post


It's been real
[*]

Group Icon
Group: Members
Posts: 2145
Member No.: 4476
Joined: 22-September 07

Status: (0d) [--]


dp, darn Flood control

This post has been edited by SuperMarioMaster on Jul 20 2008, 07:33 AM


--------------------
PMEmail Poster
Top
Unspecified
Draco Icebane
Posted: Jul 20 2008, 10:19 AM
Quote Post


Standard Member
[*][*][*][*][*]


Group Icon
Group: Banned
Posts: 52997
Member No.: 10
Joined: 13-October 03

Status: (71582612m) [XX]


QUOTE (SuperMarioMaster @ Jul 20 2008, 05:30 AM)
Ok finally trying Dracos code

But I need to know what are the 2 variables and what do I set them to

they'd be variables of the given names and defined within the player object.

they'd be initialized as 0.
PM
Top
United States
SuperMarioMaster
Posted: Jul 20 2008, 10:37 AM
Quote Post


It's been real
[*]

Group Icon
Group: Members
Posts: 2145
Member No.: 4476
Joined: 22-September 07

Status: (0d) [--]


QUOTE (Draco Icebane @ Jul 20 2008, 11:19 AM)
they'd be variables of the given names and defined within the player object.

they'd be initialized as 0.

Ah ok brb trying it out now


--------------------
PMEmail Poster
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

  Topic Options Topic Options Pages: (2) 1 [2]  Reply to this topicStart new topicStart Poll

 




[ Script Execution time: 0.0801 ]   [ 14 queries used ]   [ GZIP Enabled ]   [ Server Load: 0.25 ]