Moving walls?

Talk about anything Fraxy-related here. If you need help with Fraxy or the forums, you can ask here.
Post Reply
User avatar
Helios
Fraxy Beginner
Fraxy Beginner
Posts: 12
Joined: Sun Jun 05, 2011 11:35 am
Epicness: Epic as the floor.

Moving walls?

Post by Helios »

Ive seen like.. pros making moving walls on the sides of their screens but how do they do it ??
DERP DERP DERP DERP DERP DERP DERP
[strike]Helios was here[/strike] Helios wasn't here

User avatar
AlexMdle
Administrator
Administrator
Posts: 1189
Joined: Mon Jan 18, 2010 8:36 pm
Epicness: micro skills

Re: Moving walls?

Post by AlexMdle »

It's quite easy actually.

You need to set up several move joints that slide along the vertical side of the screen.

Add an event to all of them that activates if their move action is = 2.
As action, make it reset move action, frame and counter.

Also set extra parameters for each of those move joints

ex 1 = 7
ex 2 = (Distance you want the "wall" to extend)
ex 3 = 0
ex 4 = (How fast you want the "wall" to move)

Now comes the tricky part.

Each of those move joints should carry a segment of the wall.
Set move frame for each move joint to -(Nr of Move Joint(From second one on) * (ex 4 / Number of segments))

So, if you have 10 segments and ex parameter is = 100, you leave moveframe for first at 0, then set that of second one to -10, third to -20, fourth to -30 and etc.

Basically, each segment now takes 100 frames to reach it's destination, at which point they teleport back to their origin and move again.

By setting the time when each segment starts to move you basically create an even chain of wall segments that move along the sides of the screen. If there are gaps between the segments, you may want to make them longer.
Now under new management.

User avatar
Scionox
Elite Fraxian
Elite Fraxian
Posts: 745
Joined: Thu Sep 30, 2010 4:02 pm
Epicness: Rawr
Gold Stars: 1
Location: Lair
Contact:

Re: Moving walls?

Post by Scionox »

Or you can use scrolling background walls + ewalls for damage, which is less laggy
Was known as: <Insert huge list of nicknames i wont ever use again>
Ancient creation list: http://www.fraxyhq.com/forums/viewtopic.php?f=7&t=1526" onclick="window.open(this.href);return false;
YouTube Channel: Click
Rawr.

This signature has been signed by the End of Infinity.

Post Reply
Users browsing this forum: No registered users and 57 guests