Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> hold shift to jump
United States
Zierant
Posted: Mar 21 2007, 06:47 PM
Quote Post


There is no meaning in this world
[*][*]

Group Icon
Group: Members
Posts: 3728
Member No.: 2578
Joined: 26-August 06

Status: (0d) [--]


how do you make it so that if you'd tap shift quickly, you jump low, and if you hold it you jump high?

thanks in advance

This post has been edited by Dialga on Mar 21 2007, 06:57 PM


--------------------

Reference

Pokemon Platinum:
2234 9978 2688

user posted image
Banner by George2FRESH

PMEmail PosterAOLYahooMSN
Top
United States
Xgoff
Posted: Mar 21 2007, 06:51 PM
Quote Post


<):|
[*][*][*][*][*]
[*][*]

Group Icon
Group: Members
Posts: 52341
Member No.: 24
Joined: 13-October 03

Status: (0d) [--]


it's how long you hold shift down, not how hard you press it


--------------------

This post may contain original research or unverified claims.
Please disregard the above information and contact an administrator.

DISCLAIMER: by sending me (xgoff) a private message, you agree to the directives and their terms specified henceforth:
DIRECTIVE 1 (APPLE): i may or may not reply promptly or at all; and there are no guarantees to the usefulness of the reply. i may not acknowledge whether i have even received your private message
DIRECTIVE 2 (CHILE CON CARNE): as per my view, "private" applies only to the initial transaction, and the material of your message may or may not be made public at my discretion; as this will more than likely be a post in the CCC or IRC, you may not be able to view it
DIRECTIVE 3 (FEATHER DUSTER): you must address me (xgoff) as "Sir Master Xgofficus his Highest and Most Awesome the Third"; failure to comply with this term may invoke one or both of the above directives, and i will leave a burning bag of **** on your doorstep
DIRECTIVE 4 (BOOTSTRAP): if you have read this disclaimer, please private message me promptly, in compliance with the above terms, so i can ensure you are capable of following directions you idiot
this concludes the test of the emergency disclaimer system, your scheduled programming will now continue. satisfaction guaranteed, and 100% cash back available under certain circumstances; restrictions may or may not apply within your place of residence
NOTICE: these directives and their terms may change at any time, without notice; as a private message transaction to myself assumes an understanding and full compliance of the above, you should ensure you are fully aware of the above terms at any point before sending a private message; any message received is assumed to have been sent in compliance with the above

QUOTE
(5:25:58 PM) Mikau: xgoff
(5:26:00 PM) Mikau: guess what
(5:26:04 PM) Xgoff: chicken butt
(5:26:09 PM) Mikau: **** you
PMEmail PosterUsers WebsiteAOLMSN
Top
United States
Shanks
Posted: Mar 21 2007, 06:55 PM
Quote Post


MY TANK IS FIGHT
[*][*]

Group Icon
Group: Members
Posts: 3480
Member No.: 2357
Joined: 18-July 06

Status: (0d) [--]


I don't think that's possible.


--------------------
PMEmail Poster
Top
United States
Zierant
Posted: Mar 21 2007, 06:56 PM
Quote Post


There is no meaning in this world
[*][*]

Group Icon
Group: Members
Posts: 3728
Member No.: 2578
Joined: 26-August 06

Status: (0d) [--]


...it is, MTC, UM, and many others use that


--------------------

Reference

Pokemon Platinum:
2234 9978 2688

user posted image
Banner by George2FRESH

PMEmail PosterAOLYahooMSN
Top
Canada
MegaTailzChao
Posted: Mar 21 2007, 06:59 PM
Quote Post


So long, and thanks for all the fish.
[S][*][*][*][*]
[*][*]

Group Icon
Group: Site Staff
Posts: 15788
Member No.: 2267
Joined: 2-July 06

Status: (0d) [--]


Have it so on press, it sets the vspeed and a variable. On keyboard shift, if said variable is higher then zero, make it set the vraiable and the vspeed relative to -1.

Of course that makes it so you can float by tapping the shift key. To fix that, make it so that on the keyboard press event it also checks to see if a second variable is equal to zero. On shift release, set the second variable to 1. When the player character lands, set the second variable to zero.

Simple enough.


--------------------
user posted image
user posted imageuser posted image
PMEmail PosterMSN
Top
United States
Zierant
Posted: Mar 21 2007, 07:00 PM
Quote Post


There is no meaning in this world
[*][*]

Group Icon
Group: Members
Posts: 3728
Member No.: 2578
Joined: 26-August 06

Status: (0d) [--]


thank you


--------------------

Reference

Pokemon Platinum:
2234 9978 2688

user posted image
Banner by George2FRESH

PMEmail PosterAOLYahooMSN
Top
United States
Zierant
Posted: Mar 21 2007, 07:53 PM
Quote Post


There is no meaning in this world
[*][*]

Group Icon
Group: Members
Posts: 3728
Member No.: 2578
Joined: 26-August 06

Status: (0d) [--]


may someone make a simple tutorial on this please?

i tried everything on MTC's text but some reason it wont work.

dont care if the tutorial is crappy


--------------------

Reference

Pokemon Platinum:
2234 9978 2688

user posted image
Banner by George2FRESH

PMEmail PosterAOLYahooMSN
Top
United States
Grant
Posted: Mar 21 2007, 08:01 PM
Quote Post


John Freeman said
[*][*][*][*][*]
[*][*][*]

Group Icon
Group: Members
Posts: 8260
Member No.: 2900
Joined: 31-October 06

Status: (0d) [--]


I've made variable jumping simply by using the Press Shift event to jump and using the Release Shift event to set the vspeed to 0 if it's smaller than 0 (i.e. upward).


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

QUOTE (oh youtube trolls)
u guys r retarded hippocrates

QUOTE (Piemanthe3rd)
Pie is not random. I wish people would realize this.
PMEmail PosterUsers WebsiteAOLMSN
Top
United States
Zierant
Posted: Mar 21 2007, 08:02 PM
Quote Post


There is no meaning in this world
[*][*]

Group Icon
Group: Members
Posts: 3728
Member No.: 2578
Joined: 26-August 06

Status: (0d) [--]


that worked but he goes down instantly


--------------------

Reference

Pokemon Platinum:
2234 9978 2688

user posted image
Banner by George2FRESH

PMEmail PosterAOLYahooMSN
Top
United States
Grant
Posted: Mar 21 2007, 08:15 PM
Quote Post


John Freeman said
[*][*][*][*][*]
[*][*][*]

Group Icon
Group: Members
Posts: 8260
Member No.: 2900
Joined: 31-October 06

Status: (0d) [--]


QUOTE (Dialga @ Mar 21 2007, 09:02 PM)
that worked but he goes down instantly

That's true. For some reason it never occurred to me up to now to really check if the jumping in the official games was different from what I just described, and it turns out it is different. 0_o

MegaTailzChao, could you please put what you just said into GML code form? I'm sure that would help us both out a lot.

This post has been edited by Grant on Mar 21 2007, 08:16 PM


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

QUOTE (oh youtube trolls)
u guys r retarded hippocrates

QUOTE (Piemanthe3rd)
Pie is not random. I wish people would realize this.
PMEmail PosterUsers WebsiteAOLMSN
Top
Finland
Ultramario
Posted: Mar 22 2007, 02:06 AM
Quote Post


Dan Dan Dan!
[*][*][*][*][*]


Group Icon
Group: Members
Posts: 11240
Member No.: 2164
Joined: 9-June 06

Status: (0d) [--]


Key press "jump"
If there is collision with object at position (0,2)
Set vspeed to -10

Key "jump"
If vspeed is smaller than -4
Set vspeed relative -0.8 (important must be lower than gravity)

This code works best with room speed of 30 and with Gravity of 1

This post has been edited by Ultramario on Mar 22 2007, 02:06 AM


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

  Topic Options Topic Options Reply to this topicStart new topicStart Poll

 




[ Script Execution time: 0.0612 ]   [ 14 queries used ]   [ GZIP Enabled ]   [ Server Load: 1.17 ]