Page 1 of 1
		
			
				Horizontal Bar
				
Posted: 
Tue May 01, 2007 11:44 pmby Game A Gogo
				How do i make one, since in GE 1.3.7 , The mouse button down overrides the draw actor, the slider moves out of its orbit and it goes off the x scale while dragging...
Any help?
			 
			
		
			
				
				
Posted: 
Wed May 02, 2007 12:15 amby makslane
				What's happen? Can you post a pic?
			 
			
		
			
				
				
Posted: 
Wed May 02, 2007 12:25 amby Game A Gogo
				ok, here is one.
here is the event that it has:
- Code: Select all
- y=yprevious;
 if(x>50)x=50;
 else if(x<-50)x=-50;
And I place Drag on mouse button down
 
			
		
			
				
				
Posted: 
Wed May 02, 2007 12:39 amby makslane
				This behavior is different in the 1.3.6 version?
Can you send me the game?
			 
			
		
			
				
				
Posted: 
Wed May 02, 2007 12:55 amby Game A Gogo
				yes, this behavior is different from 1.3.6.
here is the file.
			 
			
		
			
				
				
Posted: 
Wed May 02, 2007 2:04 amby makslane
				There is no guarantee about the event execution order.   
So, is better never assume that a given event in the list will be executed before or after other.  
  
  
Follow this steps to solve the problem:  
  
1) Remove the 'Mouse Button Down' events with drag  
2) Add other 'Mouse Button Down' event and use the 'Follow Mouse' action (x axis)  
3) Add a 'Mouse Button Up' event with the action 'Follow Mouse' none
			 
			
		
			
				
				
Posted: 
Wed May 02, 2007 11:28 pmby Game A Gogo
				but this only removes the y axis problem...
I will try to find something.
			 
			
		
			
				
				
Posted: 
Thu May 03, 2007 2:22 amby Sgt. Sparky
				I use this,
make a variable called click(actor variable),
and mouse button down(drag not enabled)
click = 1;
on mouse button up:
click = 0;
on the draw actor event of your actor,
- Code: Select all
- y = whatever;
 if(xmouse > the minimum number you want && xmouse < the maximum number you want)xscreen = xmouse;
 
 
(I use this code for my sliders)
 
			
		
			
				
				
Posted: 
Thu May 03, 2007 11:52 pmby Game A Gogo
				does it work in the 1.3.7 version? anyhow i have found out a way.
			 
			
		
			
				
				
Posted: 
Thu May 03, 2007 11:53 pmby Sgt. Sparky
				Game A Gogo wrote:does it work in the 1.3.7 version? anyhow i have found out a way.
use the code in my message above, 
 
(that is why I posted it.)
even though you found I away. 

 
			
		
			
				
				
Posted: 
Fri May 04, 2007 12:24 amby Game A Gogo
				well, i kinda already used the same way, or did I? no, i just mixed it whit Mksklanes given solution
			 
			
		
			
				
				
Posted: 
Fri May 04, 2007 12:25 amby Sgt. Sparky
				
 okay. xD