Fixed X position but freely moving Y positon?
#1
I'm trying to make platforms that move straight up. How would I make it so they can't move left or right under any circumstance, but still move up normally?
Reply
#2
Are you scripting this?
I'd need more detail: How high up? How long do you want it to sit there? What speed?
[Image: poptartFINALTINY.gif]
[Image: log.png?t=1302647037]
Reply
#3
I already have those parts covered. I just need to figure out how to make it so that its X position/velocity STAYS where it is.
Reply
#4
Try making x value fixed.

It's not "anchored" it's "fixed"

Check this out for more info: http://buildism.net/wiki/w/index.php?title=Main_Page Scripting for functions and what-nots.
[Image: poptartFINALTINY.gif]
[Image: log.png?t=1302647037]
Reply
#5
I have no idea how to make the X value fixed.
Reply
#6
(04-09-2011, 06:54 PM)TylerMcBride Wrote: I have no idea how to make the X value fixed.

I'm guessing you are using FixedVelocity, and have a FixedRotation in the brick.

[lua]
box1.FixedVelocity.Velocity = Vec2D(0, 5)
[/lua]

Otherwise, if all you want to do is move a Fixed brick up, you would want...

[lua]
while true do
sleep(0.1)
box1.Position = box1.Position + Vec2D(0,1)
end
[/lua]
[Image: rogershanksluffy_display.gif]
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)