04-09-2011, 06:39 PM 
		
	
	
		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?
	
	
	
	
	
| The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.4.12 (Linux)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  | 
| 
				
				 
					Fixed X position but freely moving Y positon?
				 
			 | 
		
| 
	 
		
		
		04-09-2011, 06:39 PM 
		
	 
	
		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?
	 
	
	
	
	
		
		
		04-09-2011, 06:42 PM 
(This post was last modified: 04-09-2011, 06:42 PM by kingdragon97.)
		
	 
	
		Are you scripting this?  
	
	
I'd need more detail: How high up? How long do you want it to sit there? What speed? ![]() 
		
		
		04-09-2011, 06:43 PM 
		
	 
	
		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.
	 
	
	
	
	
		
		
		04-09-2011, 06:49 PM 
		
	 
	
		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. ![]() 
		
		
		04-09-2011, 06:54 PM 
		
	 
	
		I have no idea how to make the X value fixed.
	 
	
	
	
	
		
		
		04-09-2011, 07:41 PM 
		
	 
	(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]  
 | 
| 
				
	 
					« Next Oldest | Next Newest »
				 
			 |