Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> GM Jump-Through Code
United States
Pucifur
Posted: Jan 26 2006, 06:11 PM
Quote Post


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


Group Icon
Group: Site Staff
Posts: 6357
Member No.: 1035
Joined: 10-May 05

Status: (0d) [--]


I need a code for GM that allows Mario to jump up through a block but land and walk on the top.

help plz.


--------------------
- P - U - C - I - F - U - R -
got one
user posted image
PMEmail Poster
Top
United States
quintorro
Posted: Jan 26 2006, 07:01 PM
Quote Post


Standard Member
[*]

Group Icon
Group: Members
Posts: 1228
Member No.: 1168
Joined: 16-June 05

Status: (0d) [--]


I don't know the specific code, but go to Game Maker Comunnity or Game Maker Game Fourms. That's where I got the code from.


--------------------
PMEmail PosterAOLYahooMSN
Top
United States
Slash
Posted: Jan 27 2006, 05:17 AM
Quote Post


Hmph...what a fool...
[*][*][*][*][*]


Group Icon
Group: Members
Posts: 2363
Member No.: 1561
Joined: 26-October 05

Status: (0d) [--]


In the collision even with the block put this codes.
CODE
if (vspeed < 0)
{
other.solid = false
}
if (vspeed > 0)
{
move_contact(90);
vspeed = 0;
other.solid = true;
}

// jump through a wall part 2
if (other.solid = true)
{
move_contact(270);
vspeed = 0;


I hope this helps you.


--------------------
A New Adventure Coming Soon!!!
user posted image
PMEmail Poster
Top
Unspecified
Bowserman
Posted: Jan 27 2006, 06:48 AM
Quote Post


WAH! WAH!
[*][*][*][*][*]
[*][*]

Group Icon
Group: Banned
Posts: 16017
Member No.: 738
Joined: 20-December 04

Status: (0d) [--]


QUOTE (Slash @ Jan 27 2006, 09:17 PM)
In the collision even with the block put this codes.
CODE
if (vspeed < 0)
{
other.solid = false
}
if (vspeed > 0)
{
move_contact(90);
vspeed = 0;
other.solid = true;
}

// jump through a wall part 2
if (other.solid = true)
{
move_contact(270);
vspeed = 0;
}


I hope this helps you.

Fixed.
PMUsers WebsiteMSN
Top
United States
Slash
Posted: Jan 27 2006, 07:45 AM
Quote Post


Hmph...what a fool...
[*][*][*][*][*]


Group Icon
Group: Members
Posts: 2363
Member No.: 1561
Joined: 26-October 05

Status: (0d) [--]


QUOTE (Heli Tech III @ Jan 27 2006, 02:48 PM)
Fixed.

What did you fix? sad.gif
Edit: yeah I forgot that stupid }... me sorry.

This post has been edited by Slash on Jan 27 2006, 07:46 AM


--------------------
A New Adventure Coming Soon!!!
user posted image
PMEmail Poster
Top
Austria
Guinea
Posted: Jan 27 2006, 10:41 AM
Quote Post


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

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

Status: (0d) [--]


Yeah you could do it like that indeed.
But of course you have to know that even if Mario is just touching the wall with his head, Mario will be tranfered to the top of the block with this code.
I recommend using non-solid objects. Of course they would be a bit more complicated.
OH! And enemies won't react on this either sad.gif Doesn't work.
Example: Make Mario jump through a block from below and an enemy standing on this block will fall down. Therefore this doesn't work.

Non-solid blocks is the key to make them perfect or even "good".
But this takes a lot of GML knowledge and can't be explained in a post.
Maybe some day on MSN *sigh*

This post has been edited by Guinea on Jan 27 2006, 10:42 AM
PMEmail PosterAOLMSN
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.0445 ]   [ 13 queries used ]   [ GZIP Enabled ]   [ Server Load: 0.56 ]