| Posted By | Message | 
	
	
		|  Hempuli
 Crazy?
 
 Registered
 09/01/2005
 Points
 7968
 
 
        | 
  			5th December, 2006 at 16:48:07 - 
  		
			
		
  			
  		 I'm trying to make a game, where you can climb on areas with a special color (like yellow, for example). Could i somehow do it with layer object? I've tried, but i haven't got any real success. any help?
 
 
  No sig for you. | 
  	
  	
		|  Hempuli
 Crazy?
 
 Registered
 09/01/2005
 Points
 7968
 
 
        | 
  			6th December, 2006 at 06:13:52 -
  		
			
		
  			
  		 Looks like this is hard thing to solve.
 
 
  No sig for you. | 
  	
  	
  	
  	
		|  Hempuli
 Crazy?
 
 Registered
 09/01/2005
 Points
 7968
 
 
        | 
  			7th December, 2006 at 08:50:29 -
  		
			
		
  			
  		 Omg, sorry to everyone, i just checked and it's overlay object, not layer object! Sorriees!
 
 
  No sig for you. | 
  	
  	
  	
  	
		|  Werbad
 
   
 Registered
 18/09/2002
 Points
 235
 | 
  			7th December, 2006 at 12:45:00 -
  		
			
		
  			
  		 Is it the detection part or the climbing part that is the problem?
 
 
  n/a | 
  	
  	
  	
  	
		|  Hempuli
 Crazy?
 
 Registered
 09/01/2005
 Points
 7968
 
 
        | 
  			7th December, 2006 at 14:00:46 -
  		
			
		
  			
  		 the detection part.
 
 
  No sig for you. | 
  	
  	
  	
  	
		|  Tim
 I'm on here way too much
 
 Registered
 25/08/2006
 Points
 132
 
 
           
 | 
  			7th December, 2006 at 19:03:01 -
  		
			
		
  			
  		 Try just using collision masks or something?
 
 
  http://www.SilverNova.co.uk 
 
 | 
  	
  	
  	
  	
		|  Hempuli
 Crazy?
 
 Registered
 09/01/2005
 Points
 7968
 
 
        | 
  			8th December, 2006 at 09:21:28 -
  		
			
		
  			
  		 But i don't exactly know how those work...
 If you could give me an example how would you do that..
 
 
  No sig for you. | 
  	
  	
  	
  	
		|  Tim
 I'm on here way too much
 
 Registered
 25/08/2006
 Points
 132
 
 
           
 | 
  			8th December, 2006 at 10:30:06 -
  		
			
		
  			
  		 Erm... well in a nut-shell, instead of using the literal object for setting events you place another invisible object and assign the events to that instead?
   
 That's a really bad explanation but hopefully you get the jist of it.. ?
   
 
  http://www.SilverNova.co.uk 
 
 | 
  	
  	
  	
  	
		|  Werbad
 
   
 Registered
 18/09/2002
 Points
 235
 | 
  			9th December, 2006 at 05:14:49 -
  		
			
		
  			
  		 The overlay has a function for getting the color-index of a specific position, you can use that to check what the color at the players position is...
 Ex:
 ovlGetColorIndex( "Overlay", X("Player"), Y("Player") )
 To retrieve a color-index, use getRgb( , ,  )
 
 
  n/a | 
  	
  	
  	
  	
		|  Bibin
 At least 9001
 
 Registered
 01/07/2005
 Points
 308
 
 
      | 
  			9th December, 2006 at 10:49:25 -
  		
			
		
  			
  		 Also, you could have one layer for climbing, and that layer has invisible collidable backgrounds on it. Also, you'd have an invisible active on the same layer, so whenever that active is overlapping a backdrop on it's layer, BANG yer climbing.
 
 
  n/a | 
  	
  	
  	
  	
		|  Hempuli
 Crazy?
 
 Registered
 09/01/2005
 Points
 7968
 
 
        | 
  			11th December, 2006 at 08:14:20 -
  		
			
		
  			
  		 But the problem is, the thng you're climbing can turn 360 degrees, and only some parts of it should be climbable.
 
 
  No sig for you. | 
  	
  	
  	
  	
		|  Bibin
 At least 9001
 
 Registered
 01/07/2005
 Points
 308
 
 
      | 
  			12th December, 2006 at 20:14:12 -
  		
			
		
  			
  		 ah, ok.
 
 
  n/a | 
  	
  	
  	
  	
		|  Tim
 I'm on here way too much
 
 Registered
 25/08/2006
 Points
 132
 
 
           
 | 
  			16th December, 2006 at 07:42:06 -
  		
			
		
  			
  		 Then create little collision masks on just those areas and tell them to move with it or something?
   
 By collision masks I mean what Bibin explained for me, in more detail
   
 
  http://www.SilverNova.co.uk 
 
 | 
  	
  	
  	
  	
		|  Werbad
 
   
 Registered
 18/09/2002
 Points
 235
 | 
  			17th December, 2006 at 05:00:18 -
  		
			
		
  			
  		 And what's wrong using an overlay as a collision mask?
 
 
  n/a | 
  	
  	
  	
  	
		|  Hempuli
 Crazy?
 
 Registered
 09/01/2005
 Points
 7968
 
 
        | 
  			17th December, 2006 at 06:17:05 -
  		
			
		
  			
  		 that i don't know how to use them!!
 
 I tried earlier that
 
 Ex:
 ovlGetColorIndex( "Overlay", X("Player"), Y("Player") )
 To retrieve a color-index, use getRgb( , ,  )
 
 but it's not working.
 
 
  No sig for you. | 
  	
  	
		
			|  |  |