Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> ledge help, ledge
Unspecified
Bormogin
Posted: Jul 30 2006, 04:58 PM
Quote Post


Standard Member
[*]

Group Icon
Group: Members
Posts: 3195
Member No.: 1844
Joined: 29-January 06

Status: (0d) [--]


how do I make it so you can jump through the bottom of the ledge, but stand on top of it (Game Maker)

Attached File ( Number of downloads: 10 )
Attached File  file.zip


--------------------
Super Mario IV: Vendetta of the Guillotine Mask is now permanently cancelled. I may start a new project.
PMEmail PosterYahoo
Top
Unspecified
Sir_Gamealot
  Posted: Jul 31 2006, 10:00 AM
Quote Post


Happy 30th Star Wars!
[*]

Group Icon
Group: Members
Posts: 319
Member No.: 2227
Joined: 22-June 06

Status: (0d) [--]


no credit needed(I didn't make this)

1.make an invisible(if you use tiles,if not,visible),solid block

2. in the players collision event with this object:
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;
}

then set the direction moving to nothing(don't click a direction tab)

that's it!

p.s. I didn't download your example,but it's easier to do it this way wink.gif ...





--------------------
aka: GMC; lildave2011
user posted image
peek-a-boo!
PMEmail PosterUsers WebsiteAOL
Top
Unspecified
Bormogin
Posted: Jul 31 2006, 10:08 AM
Quote Post


Standard Member
[*]

Group Icon
Group: Members
Posts: 3195
Member No.: 1844
Joined: 29-January 06

Status: (0d) [--]


QUOTE (gamemakerchampion @ Jul 31 2006, 10:00 AM)
no credit needed(I didn't make this)

1.make an invisible(if you use tiles,if not,visible),solid block

2. in the players collision event with this object:
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;
}

then set the direction moving to nothing(don't click a direction tab)

that's it!

p.s. I didn't download your example,but it's easier to do it this way wink.gif ...

thanks, I'll give this a shot


--------------------
Super Mario IV: Vendetta of the Guillotine Mask is now permanently cancelled. I may start a new project.
PMEmail PosterYahoo
Top
Unspecified
Bormogin
Posted: Jul 31 2006, 10:17 AM
Quote Post


Standard Member
[*]

Group Icon
Group: Members
Posts: 3195
Member No.: 1844
Joined: 29-January 06

Status: (0d) [--]


oops, didn't work


--------------------
Super Mario IV: Vendetta of the Guillotine Mask is now permanently cancelled. I may start a new project.
PMEmail PosterYahoo
Top
Finland
Ultramario
Posted: Jul 31 2006, 10:30 AM
Quote Post


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


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

Status: (0d) [--]


I use this in NSM2

object "Block" and "step" event

If y is larger than character y+character_height (but I use +28)
Solid true
else
Solid false

Hope this helps


--------------------
PMEmail PosterUsers WebsiteAOL
Top
Unspecified
Bormogin
Posted: Jul 31 2006, 12:32 PM
Quote Post


Standard Member
[*]

Group Icon
Group: Members
Posts: 3195
Member No.: 1844
Joined: 29-January 06

Status: (0d) [--]


QUOTE (ultramario @ Jul 31 2006, 10:30 AM)
I use this in NSM2

object "Block" and "step" event

If y is larger than character y+character_height (but I use +28)
Solid true
else
Solid false

Hope this helps

for the Solid true and Solid false part, I used the silver box marked "VAR", but it didn't work.

is that what you meant?


--------------------
Super Mario IV: Vendetta of the Guillotine Mask is now permanently cancelled. I may start a new project.
PMEmail PosterYahoo
Top
Finland
Ultramario
Posted: Jul 31 2006, 12:58 PM
Quote Post


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


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

Status: (0d) [--]


QUOTE (Shockstuff @ Jul 31 2006, 07:32 PM)
for the Solid true and Solid false part, I used the silver box marked "VAR", but it didn't work.

is that what you meant?

OH and character needs this

collision with "block"

If other solid is equal to true
<set verticalspeed to 0
If y is smaller than other.y-character_height/2 or 3 (I use -10)
jump to postion character.x other.y-character_height>


For side note: I donīt actually use "character_height" value I use number values instead, because they are easier to use/understand.

You may use 48 if Wartīs spite height is 48

And hereīs a little correction to my first post:

object "Block" and "step" event

If y is larger than character y+character_height-4 or 8 (but I use +28)
Solid true
else
Solid false


--------------------
PMEmail PosterUsers WebsiteAOL
Top
Unspecified
Bormogin
Posted: Jul 31 2006, 01:12 PM
Quote Post


Standard Member
[*]

Group Icon
Group: Members
Posts: 3195
Member No.: 1844
Joined: 29-January 06

Status: (0d) [--]


QUOTE (ultramario @ Jul 31 2006, 12:58 PM)
OH and character needs this

collision with "block"

If other solid is equal to true
<set verticalspeed to 0
If y is smaller than other.y-character_height/2 or 3 (I use -10)
jump to postion character.x other.y-character_height>


For side note: I donīt actually use "character_height" value I use number values instead, because they are easier to use/understand.

You may use 48 if Wartīs spite height is 48

And hereīs a little correction to my first post:

object "Block" and "step" event

If y is larger than character y+character_height-4 or 8 (but I use +28)
Solid true
else
Solid false

thanks, I'll try THAT.


--------------------
Super Mario IV: Vendetta of the Guillotine Mask is now permanently cancelled. I may start a new project.
PMEmail PosterYahoo
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.0572 ]   [ 14 queries used ]   [ GZIP Enabled ]   [ Server Load: 0.98 ]