Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> A neat little program I made, Quite useful
United States
RetroXYZ
Posted: Feb 21 2009, 04:09 PM
Quote Post


Standard Member
[*][*]

Group Icon
Group: Members
Posts: 2714
Member No.: 4325
Joined: 27-August 07

Status: (0d) [--]


This is just a simple program where you enter some speed data and it will tell you how high you can jump with the given speeds, how far you jump with the given speeds, and the time it takes for you to jump and fall (in milliseconds).

The tile size is there just for easy visualization; IMO 2 tiles high is a lot more meaningful to me than 32 pixels (even though I can convert).

I figured I'd share it with you guys; source is included.

This post has been edited by RetroXYZ on Feb 21 2009, 05:15 PM

Attached File ( Number of downloads: 19 )
Attached File  Jump_Tester.zip
PMEmail PosterMSN
Top
Spain
Sergeant DeeY
Posted: Feb 21 2009, 04:15 PM
Quote Post


~Heh Heh~
[*][*][*]

Group Icon
Group: Members
Posts: 1344
Member No.: 4730
Joined: 17-November 07

Status: (0d) [--]


I can't open it


--------------------
The signature will not be available when the new forums shows up.
~~DeeY~~
PMUsers Website
Top
United States
OniLink10
Posted: Feb 21 2009, 04:17 PM
Quote Post


C++ Programmer, Unofficial Physicist, and Unofficial Chemist
[*][*]

Group Icon
Group: Members
Posts: 3920
Member No.: 4907
Joined: 19-February 08

Status: (0d) [--]


Looks neat! This'll help a bit with Engine Designing!


--------------------
QUOTE (Xgoff @ Sep 10 2009 @ 06:11 PM)
did you try hello's engine

make sure to not ****ing change anything before using it!
PMEmail PosterUsers WebsiteYahoo
Top
United States
OniLink10
Posted: Feb 21 2009, 04:19 PM
Quote Post


C++ Programmer, Unofficial Physicist, and Unofficial Chemist
[*][*]

Group Icon
Group: Members
Posts: 3920
Member No.: 4907
Joined: 19-February 08

Status: (0d) [--]


QUOTE (Sergeant DeeY @ Feb 21 2009, 01:15 PM)
I can't open it

You need 7-Zip.


--------------------
QUOTE (Xgoff @ Sep 10 2009 @ 06:11 PM)
did you try hello's engine

make sure to not ****ing change anything before using it!
PMEmail PosterUsers WebsiteYahoo
Top
United States
Project_MK
Posted: Feb 21 2009, 04:22 PM
Quote Post


Wayward Vagabond
[*][*][*][*]

Group Icon
Group: Members
Posts: 1763
Member No.: 3159
Joined: 7-January 07

Status: (0d) [--]


it glitches if you put in a number
pffff i mean letter

This post has been edited by Project_MK on Feb 21 2009, 04:22 PM


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

user posted image
Click banner for reference.
PMEmail PosterAOLYahooMSN
Top
United States
OniLink10
Posted: Feb 21 2009, 04:24 PM
Quote Post


C++ Programmer, Unofficial Physicist, and Unofficial Chemist
[*][*]

Group Icon
Group: Members
Posts: 3920
Member No.: 4907
Joined: 19-February 08

Status: (0d) [--]


Here's an Idea: Max Fall Speed


--------------------
QUOTE (Xgoff @ Sep 10 2009 @ 06:11 PM)
did you try hello's engine

make sure to not ****ing change anything before using it!
PMEmail PosterUsers WebsiteYahoo
Top
United States
OniLink10
Posted: Feb 21 2009, 04:32 PM
Quote Post


C++ Programmer, Unofficial Physicist, and Unofficial Chemist
[*][*]

Group Icon
Group: Members
Posts: 3920
Member No.: 4907
Joined: 19-February 08

Status: (0d) [--]


QUOTE (Project_MK @ Feb 21 2009, 01:22 PM)
it glitches if you put in a number
pffff i mean letter

That's because it's only designed to support numbers.


--------------------
QUOTE (Xgoff @ Sep 10 2009 @ 06:11 PM)
did you try hello's engine

make sure to not ****ing change anything before using it!
PMEmail PosterUsers WebsiteYahoo
Top
Austria
Guinea
Posted: Feb 21 2009, 04:34 PM
Quote Post


6
[A][*][*][*][*]
[*][*][*][*][*]
[*]

Group Icon
Group: Admins
Posts: 8600
Member No.: 893
Joined: 15-March 05

Status: (0d) [--]


QUOTE (OniLink10 @ Feb 21 2009, 10:32 PM)
That's because it's only designed to support numbers.

Since you're a programmer you should know that stuff like that should be handled by the program creator and he should not rely on the intelligence of the user, because it can happen anytime by accident, too.
PMEmail PosterAOLMSN
Top
United States
OniLink10
Posted: Feb 21 2009, 04:41 PM
Quote Post


C++ Programmer, Unofficial Physicist, and Unofficial Chemist
[*][*]

Group Icon
Group: Members
Posts: 3920
Member No.: 4907
Joined: 19-February 08

Status: (0d) [--]


QUOTE (Guinea @ Feb 21 2009, 01:34 PM)
Since you're a programmer you should know that stuff like that should be handled by the program creator and he should not rely on the intelligence of the user, because it can happen anytime by accident, too.

Well of course, but last time I tried to do a number input program, I found it rather hard to limit it to numbers. I'm going to go check the C++ Reference to see if there's a good technique anywhere.


--------------------
QUOTE (Xgoff @ Sep 10 2009 @ 06:11 PM)
did you try hello's engine

make sure to not ****ing change anything before using it!
PMEmail PosterUsers WebsiteYahoo
Top
Austria
Guinea
Posted: Feb 21 2009, 04:42 PM
Quote Post


6
[A][*][*][*][*]
[*][*][*][*][*]
[*]

Group Icon
Group: Admins
Posts: 8600
Member No.: 893
Joined: 15-March 05

Status: (0d) [--]


QUOTE (OniLink10 @ Feb 21 2009, 10:41 PM)
Well of course, but last time I tried to do a number input program, I found it rather hard to limit it to numbers. I'm going to go check the C++ Reference to see if there's a good technique anywhere.

chr = getchar();
if (chr >= '0' && chr <= '9') { // you have a number! }
PMEmail PosterAOLMSN
Top
United States
OniLink10
Posted: Feb 21 2009, 04:44 PM
Quote Post


C++ Programmer, Unofficial Physicist, and Unofficial Chemist
[*][*]

Group Icon
Group: Members
Posts: 3920
Member No.: 4907
Joined: 19-February 08

Status: (0d) [--]


QUOTE (Guinea @ Feb 21 2009, 01:42 PM)
chr = getchar();
if (chr >= '0' && chr <= '9') { // you have a number! }

Darn it, how did I not think of that. I must be tired. Another technique is atoi()/atof() to take care of getting rid of the letters and defaulting to 0 for us.


--------------------
QUOTE (Xgoff @ Sep 10 2009 @ 06:11 PM)
did you try hello's engine

make sure to not ****ing change anything before using it!
PMEmail PosterUsers WebsiteYahoo
Top
United States
Retriever II
Posted: Feb 21 2009, 05:06 PM
Quote Post


Catalyst
[H][*][*][*][*]
[*][*][*][*][*]


Group Icon
Group: Members
Posts: 18290
Member No.: 52
Joined: 13-October 03

Status: (0d) [--]


An error would be more appropriate than defaulting to a value that holds no meaning.


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

PMEmail PosterUsers WebsiteICQAOLMSN
Top
United States
RetroXYZ
Posted: Feb 21 2009, 05:09 PM
Quote Post


Standard Member
[*][*]

Group Icon
Group: Members
Posts: 2714
Member No.: 4325
Joined: 27-August 07

Status: (0d) [--]


QUOTE (OniLink10 @ Feb 21 2009, 05:24 PM)
Here's an Idea: Max Fall Speed

I completely forgot about that - I'll add it right now. I'll also upload a zip instead.

EDIT: Updated.
EDIT2: If it glitches, then press the close button and start the program again. And plus, you can't exactly use char with decimals.

This post has been edited by RetroXYZ on Feb 21 2009, 05:19 PM
PMEmail PosterMSN
Top
United States
Baroque
Posted: Mar 12 2009, 01:11 PM
Quote Post





Group Icon
Group: Members
Posts: 817
Member No.: 6076
Joined: 11-March 09

Status: (0d) [--]


Does GameMaker support Regex?

I don't quite remember how Regex works but a valid number should be something like

^[0-9]+?.??([0-9])+??$

If anybody can correct my lousy Regex, that would be great.

This post has been edited by Baroque on Mar 12 2009, 01:11 PM


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


DeviantArt (DA needs update) | Clean FurAffinity Clean FA | Why I Cut Quotes
You see things, and you ask, 'Why?' But I dream things that never were, and I ask, 'Why not?'


QUOTE (Ryo)
its the correct form of to.........lemme run it down for ya

to is used when your talking about the number. good way to remember this: to has to letters

too is used when your talkin about actions in stuff.

two is used when your talking about places and locations
PMEmail PosterAOL
Top
Unspecified
Morshu McPhereson
Posted: Mar 12 2009, 03:43 PM
Quote Post


Who's got the sweetest disposition?
[*]

Group Icon
Group: Members
Posts: 20184
Member No.: 685
Joined: 23-November 04

Status: (0d) [--]


What the hell this is awesome. biggrin.gif
PMEmail Poster
Top
India
Char
Posted: Mar 16 2009, 01:12 PM
Quote Post


fad was bad
[M][*][*]

Group Icon
Group: Admins
Posts: 2123
Member No.: 2856
Joined: 25-October 06

Status: (0d) [--]


QUOTE (Baroque @ Mar 12 2009, 11:41 PM)
Does GameMaker support Regex?

I don't quite remember how Regex works but a valid number should be something like

^[0-9]+?.??([0-9])+??$

If anybody can correct my lousy Regex, that would be great.

why all that **** up
why not just [\d]*? (or something like that)?


--------------------
aa this broke


Make your own | If a level is breaking the rules, note the ID and PM me.
Reference (thanks Frogjester!)
PMEmail PosterUsers WebsiteAOLYahooMSN
Top
United States
Baroque
Posted: Mar 16 2009, 01:25 PM
Quote Post





Group Icon
Group: Members
Posts: 817
Member No.: 6076
Joined: 11-March 09

Status: (0d) [--]


QUOTE (Char @ Mar 16 2009, 01:12 PM)
why all that **** up
why not just [\d]*? (or something like that)?

Uh gee, so that you can use decimals?


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


DeviantArt (DA needs update) | Clean FurAffinity Clean FA | Why I Cut Quotes
You see things, and you ask, 'Why?' But I dream things that never were, and I ask, 'Why not?'


QUOTE (Ryo)
its the correct form of to.........lemme run it down for ya

to is used when your talking about the number. good way to remember this: to has to letters

too is used when your talkin about actions in stuff.

two is used when your talking about places and locations
PMEmail PosterAOL
Top
India
Char
Posted: Mar 16 2009, 01:27 PM
Quote Post


fad was bad
[M][*][*]

Group Icon
Group: Admins
Posts: 2123
Member No.: 2856
Joined: 25-October 06

Status: (0d) [--]


QUOTE (Baroque @ Mar 16 2009, 11:55 PM)
Uh gee, so that you can use decimals?

[^0-9.]*?


--------------------
aa this broke


Make your own | If a level is breaking the rules, note the ID and PM me.
Reference (thanks Frogjester!)
PMEmail PosterUsers WebsiteAOLYahooMSN
Top
United States
Xgoff
Posted: Mar 16 2009, 01:28 PM
Quote Post


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

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

Status: (0d) [--]


QUOTE (Char @ Mar 16 2009, 12:27 PM)
[^0-9.]*?

but that would accept off-the wall numbers like 8...433.34..54, since you're pretty much forced into looking for one or zero decimal points (or commas i guess)

^.-(%d*%.?%d*).-$ is a simple but probably bug-prone pattern (for lua; bug prone since i threw it together in a few minutes by experimentation rather than actually looking one up), which could probably be easily converted and expanded upon in C/C++ since those have a more powerful regex engine

but hey it supports optional leading zeros so yeah

This post has been edited by Xgoff on Mar 16 2009, 01:57 PM


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

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
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.1030 ]   [ 15 queries used ]   [ GZIP Enabled ]   [ Server Load: 2.36 ]