Wall Jumping or Sliding Problem (need help)

rojasstencylman

  • Posts: 198
Thnx, that worked. But can u help fix the bug that if u are touching the sides then u cant jump when u wanna jump and run?
Only the determined can even try to make a game!
If u get an answer to ur question, edit topic title to [Solved] by "modifying" ur first post on the topic
Also, if you want ur link to say something else like this one, which leads to the Stencyl Arcade, you do this:
[ url=http://www.stencyl.com/play ]hello[/ url ]

rojasstencylman

  • Posts: 198
Does anyone know?  ::)
Only the determined can even try to make a game!
If u get an answer to ur question, edit topic title to [Solved] by "modifying" ur first post on the topic
Also, if you want ur link to say something else like this one, which leads to the Stencyl Arcade, you do this:
[ url=http://www.stencyl.com/play ]hello[/ url ]

captaincomic

  • *
  • Posts: 6108
Instead of "actor hit a tile" try "bottom of actor was hit".

rojasstencylman

  • Posts: 198
Instead of "actor hit a tile" try "bottom of actor was hit".
tried that, didnt really work u can still see for urself here is the change of coding:
Only the determined can even try to make a game!
If u get an answer to ur question, edit topic title to [Solved] by "modifying" ur first post on the topic
Also, if you want ur link to say something else like this one, which leads to the Stencyl Arcade, you do this:
[ url=http://www.stencyl.com/play ]hello[/ url ]

rojasstencylman

  • Posts: 198
Only the determined can even try to make a game!
If u get an answer to ur question, edit topic title to [Solved] by "modifying" ur first post on the topic
Also, if you want ur link to say something else like this one, which leads to the Stencyl Arcade, you do this:
[ url=http://www.stencyl.com/play ]hello[/ url ]

captaincomic

  • *
  • Posts: 6108
You don't need the "otherwise if bottom of actor wasn't hit". Besides that I don't really see why it wouldn't work.

rojasstencylman

  • Posts: 198
it all works, but it just wont jump if it hits the side of a tile. The new code is below and the game link is here

« Last Edit: December 21, 2012, 08:19:16 am by rojasstencylman »
Only the determined can even try to make a game!
If u get an answer to ur question, edit topic title to [Solved] by "modifying" ur first post on the topic
Also, if you want ur link to say something else like this one, which leads to the Stencyl Arcade, you do this:
[ url=http://www.stencyl.com/play ]hello[/ url ]

rojasstencylman

  • Posts: 198
in case u guys dont realize, my problem is that wen i try to jump while running and im touching a wall, the actor will just slowly climb up the wall instead of jump. Play it to try  for urself
Only the determined can even try to make a game!
If u get an answer to ur question, edit topic title to [Solved] by "modifying" ur first post on the topic
Also, if you want ur link to say something else like this one, which leads to the Stencyl Arcade, you do this:
[ url=http://www.stencyl.com/play ]hello[/ url ]

rojasstencylman

  • Posts: 198
updated code below; the problem is that if u jump and then hit a wall while running, u stick to the wall. Anyone know how to fix this?
Only the determined can even try to make a game!
If u get an answer to ur question, edit topic title to [Solved] by "modifying" ur first post on the topic
Also, if you want ur link to say something else like this one, which leads to the Stencyl Arcade, you do this:
[ url=http://www.stencyl.com/play ]hello[/ url ]

rojasstencylman

  • Posts: 198
How come no one else ever has this problem, therefor shouldn't someone be able to help me?!?
Only the determined can even try to make a game!
If u get an answer to ur question, edit topic title to [Solved] by "modifying" ur first post on the topic
Also, if you want ur link to say something else like this one, which leads to the Stencyl Arcade, you do this:
[ url=http://www.stencyl.com/play ]hello[/ url ]

rojasstencylman

  • Posts: 198
this is the same as asking, "Howdy ya wall-slide without reducing the frame rate to 2 FPS"?
Only the determined can even try to make a game!
If u get an answer to ur question, edit topic title to [Solved] by "modifying" ur first post on the topic
Also, if you want ur link to say something else like this one, which leads to the Stencyl Arcade, you do this:
[ url=http://www.stencyl.com/play ]hello[/ url ]

captaincomic

  • *
  • Posts: 6108
Well, I don't have a clue (and apparently no one else does either.) You'll have to experiment a bit by yourself to find the cause. Some things to try: use the "push" block instead of setting y-speed or reduce friction of the player actor.

dtrungle

  • Posts: 1938
If you continuously apply force(velocity) at the wall then your actor will stick there. Constant horizontal force at a vertical wall will keep you stuck at the point of contact.

You'll need to disable the force if colliding with vertical wall. That way you will fall down due to gravity. You'll have to code other logic for other things.

EDIT: I just tried the above with a constant velocity of (self+2) and I was stuck on the wall. You should also edit the collision box of the actor so that the corners are cut off.

« Last Edit: December 26, 2012, 08:51:11 am by dtrungle »

rojasstencylman

  • Posts: 198
this is my current behavior from messing around a bit but still doesn't work and if u hit ~ then it will show that every time u hit left or right arrow it will say that my event doesn't evist, so i need help and the game has been updated. BTW i also wanna see how u guys do run and jump (only if not the behavior that comes wit Stencyl).
Thnx
Only the determined can even try to make a game!
If u get an answer to ur question, edit topic title to [Solved] by "modifying" ur first post on the topic
Also, if you want ur link to say something else like this one, which leads to the Stencyl Arcade, you do this:
[ url=http://www.stencyl.com/play ]hello[/ url ]

dtrungle

  • Posts: 1938
From what you posted, the problem is either:

1. You did not attach the behavior.
2. The Event Name is different either in your call or where it was created.