The Daily Click ::. Forums ::. Klik Coding Help ::. Hello, oh and....
 

Post Reply  Post Oekaki 
 

Posted By Message

siegeon



Registered
  28/03/2008
Points
  18
28th March, 2008 at 16:28:48 -

It sure looks that way. When I walk over to the wall As best I can tell the Detector is overlapping the wall, however It may be pushing into the player as I set a few rules up like set position at (0,0) from "Player"

Oh Duh... The Dont ever overlap, they just touch

Image Edited by the Author.

 
n/a

Steve Hallam



Registered
  02/03/2008
Points
  37
28th March, 2008 at 16:33:13 -

That looks like the problem then, make sure it's set far enough away from the player to overlap the wall. I'd make it fairly visible too at this point, like 15x15, just so it's easy to see, and then make it invisible later on.

 
Eyyyy Macarena!

siegeon



Registered
  28/03/2008
Points
  18
28th March, 2008 at 16:37:25 -

So I set the LDetector (-1,0) And that is defiantly a step in the right direction. So a new sort of neat bug is that if it is overlapping I can jump almost to the top of the screen, then slow slide down, picking up speed until I get to the bottom. The picking up speed part is fine, but the just to the roof is not. Thoughts?

 
n/a

siegeon



Registered
  28/03/2008
Points
  18
28th March, 2008 at 17:13:05 -

Ok bug fixed, mostly.

The new line of code looks like this.

"Ldetector" is overlapping a backdrop
player: Set JumpCount to 0
Set Grav to 0
Set Grav to Grav("Player")+.15

So I jump away from a wall everything is fine.
I jump into a wall I stick. ( The last line is not working for what ever reason)

I jump agains the wall I go up about 10 pixels and stick.

How can I get that last line to work.

I want gravit to reset once my guy hits a wall, but then I want it to slowly drag him down. Right now he just sort'a hangs there.

 
n/a

Steve Hallam



Registered
  02/03/2008
Points
  37
28th March, 2008 at 17:31:34 -

That's because the way it is now, you are resetting the gravity every time the event is reached - and if the LDetector is overlapping the wall, Set Grav to 0 happens.

Try:

- "Ldetector" is overlapping a backdrop + only one action when event loops : Set Grav to 0

then, in a new event:

- "Ldetector" is overlapping a backdrop : Set Grav to Grav("Player")+.15

This should reset your gravity to 0, but only once, and from then on the gravity should increase with time.

 
Eyyyy Macarena!

siegeon



Registered
  28/03/2008
Points
  18
28th March, 2008 at 17:53:50 -

Sorry, but how do you enter the code

"only one action when event loops"

 
n/a

Steve Hallam



Registered
  02/03/2008
Points
  37
28th March, 2008 at 17:55:23 -

New Condition > Special > Only One Action When Event Loops.

 
Eyyyy Macarena!

siegeon



Registered
  28/03/2008
Points
  18
28th March, 2008 at 17:59:18 -

Oh Ninja Style!!! Thank you so much!

 
n/a
   

Post Reply



 



Advertisement

Worth A Click