Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> Help with moving platform, In GM6
Unspecified
Nini Fan#33;
Posted: Nov 25 2006, 06:40 PM
Quote Post


I am (And always will be) THE GLITCH MASTER!
[*]

Group Icon
Group: Members
Posts: 946
Member No.: 2646
Joined: 9-September 06

Status: (0d) [--]


Can someone please help me in my game I have moving platforms but I need mario to stay on them without moving.
And by that I mean without having to press left or right to try and stay on the platform. Mario just moves with the platform.
Can someone please help me.

This post has been edited by Nini Fan#33; on Nov 25 2006, 06:41 PM

Attached File ( Number of downloads: 13 )
Attached File  Super_Mario_Quest_for_the_Mystic_Star.gm6


--------------------
Glitches rock. Face it.

One of the few people who still uses GM6.1 and not GM7

user posted image
My Ref(Thank You The Sponge)

Sprite Sheet
Thanks to everyone who drew me in the past!
PM
Top
Unspecified
rabbitears
Posted: Nov 26 2006, 12:08 AM
Quote Post


Epic battle
[*][*][*]

Group Icon
Group: Members
Posts: 609
Member No.: 2911
Joined: 5-November 06

Status: (0d) [--]


Step event for Mario:
------------------------------------------------
if (place_meeting(x,y+1,obj_platform))
obj_mario.hspeed =obj_platform.hspeed
else
obj_mario.hspeed=obj_mario.hspeed

------------------------------------------------
Collision with platform for Mario:
------------------------------------------------
alarm[2] = 15
------------------------------------------------
Alarm 2 for Mario:
------------------------------------------------
if place_free(obj_mario.x+0,obj_mario.y+1)
hspeed = 0
------------------------------------------------
The alarm lets Mario know that he's not on a moving platform anymore.
Without it he might still move with the platform even when he's off of it.

Hopefully that will work.


--------------------
user posted imageuser posted image
My Reference
People who sprote or drew me: LakiPlant Neopolis(old ref)
PMEmail Poster
Top
Finland
Ultramario
Posted: Nov 26 2006, 03:47 AM
Quote Post


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


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

Status: (0d) [--]


There. Easy fix.

Attached File ( Number of downloads: 13 )
Attached File  Super_Mario_Quest_for_the_Mystic_Star.gm6


--------------------
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.0352 ]   [ 14 queries used ]   [ GZIP Enabled ]   [ Server Load: 0.20 ]