Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> Moving Platforms In Static, Anyone know how?
Unspecified
ShyGuy182
Posted: Jan 10 2004, 02:46 PM
Quote Post


Paranoid Android
[*]

Group Icon
Group: Members
Posts: 514
Member No.: 26
Joined: 13-October 03

Status: (0d) [--]


I've been trying to do moving platforms in static, but I've had no success. Does anyone know how to do this? I'll put you in the credits.


--------------------
user posted image
PMEmail PosterAOLMSN
Top
Unspecified
Quicky
Posted: Jan 10 2004, 03:46 PM
Quote Post


a weed in glaber's garden
[*]

Group Icon
Group: Members
Posts: 12957
Member No.: 7
Joined: 13-October 03

Status: (0d) [--]


Instead of using a path movement, use flags and set the moving platform to move X pixels every Y amount of time and toggle flag 1 when touching an invisible active object. When it's supposed to move right set the platform's flag 1 to on, and set it to move positive X pixels every Y amount of time, and when it's supposed to move left set flag 1 to off, and have it move negative X pixels every Y time. Then add:

If Z player object's bottom sensor touches the moving platform + Z player object's animation is not jumping + moving platform's flag 1 is off then move negative X pixels every Y time.
If Z player object's bottom sensor touches the moving platform + Z player object's animation is not jumping + moving platform's flag 1 is on then move positive X pixels every Y time.

Congratulations, you've got roughly the second game in MFGG's history to have working moving platforms (the first being Luigi Quest of course.)


--------------------
the only good userbar on earth:

PM
Top
Unspecified
ShyGuy182
Posted: Jan 10 2004, 03:55 PM
Quote Post


Paranoid Android
[*]

Group Icon
Group: Members
Posts: 514
Member No.: 26
Joined: 13-October 03

Status: (0d) [--]


Thanks, it works. *throws Quicky a cookie*


--------------------
user posted image
PMEmail PosterAOLMSN
Top
United States
RelmM
Posted: Jan 10 2004, 04:00 PM
Quote Post


Surprise!
[*][*][*][*][*]
[*][*]

Group Icon
Group: Members
Posts: 9317
Member No.: 180
Joined: 11-December 03

Status: (0d) [--]


I thought credits were the the replies o.O


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

user posted image
PMAOLMSN
Top
Unspecified
ShyGuy182
Posted: Jan 10 2004, 04:02 PM
Quote Post


Paranoid Android
[*]

Group Icon
Group: Members
Posts: 514
Member No.: 26
Joined: 13-October 03

Status: (0d) [--]


Oh yah, he'll be in the credits also. ^^;


--------------------
user posted image
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.0353 ]   [ 13 queries used ]   [ GZIP Enabled ]   [ Server Load: 2.80 ]