Wall Jumping or Sliding Problem (need help)

rojasstencylman

  • Posts: 198
ive been trying to make my own run and jump behavior from scratch with almost no experience but ive had a problem with it being able to air jump. I tried to make a "Touching Ground?" boolean attribute but it would just disable jumping. Jump with z, move with arrow keys. Here is the very unfinished game. Program listed below:

« Last Edit: December 26, 2012, 05:58:51 pm 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 ]

Max Finch

  • *
  • Posts: 2187
1) why so many always statements? Put them in 1 to improve frame rate and if you want to organize, use comment blocks.

2) why make one when there is already a entire system of these?

rojasstencylman

  • Posts: 198
1) why so many always statements? Put them in 1 to improve frame rate and if you want to organize, use comment blocks.

2) why make one when there is already a entire system of these?
1)sorry but frame rate isn't a problem for me right now and its easier for me somehow
2)im trying to learn instead of copying the one provided
also i updated game and scripts need help with same problem again
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 ]

Max Finch

  • *
  • Posts: 2187
I talked about this in the pro forums. Let me see if I can copy what you may need since your not a subscriber.

Max Finch

  • *
  • Posts: 2187
Now this is giving it friction in air by using X and Y speeds. But you can probably mainpulate it so it set a on ground to true and every time you jump have a counter.

rojasstencylman

  • Posts: 198
im just trying to make this guy only jump when he touching the ground, not add friction
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 ]

Max Finch

  • *
  • Posts: 2187
I know lol. Remove the friction part and set a Boolean that allows when jumping happens and when it doesn't.

rojasstencylman

  • Posts: 198
please help. What happens is that i cant do anything when it doesnt hit a tile so here i have the game link and i need help still. The coding below and yeah... thats pretty much it.
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: 6109
At the end of your "always" try to reset "Touching Platform?" to 0. This way it will only be 1, if you just hit a tile, not forever after.

Besides that, enabling/disabling gravity seems like a strange (but creative ;)) way to make a jump.
It's probably easier to use "push Self sharply towards (xdir: 0 ydir: -1) at _ force" instead when Up was pressed.

And just a note: Instead of using a number attribute that you set to 0/1 for "Touching Platform?" you can use a boolean and set it to true/false.

rojasstencylman

  • Posts: 198
wow. thats just sad. how did i not think of that?!? i could cry  :-X :'( :-[
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
ok i did that but if u fall without jumping than u can jump in the air i updated terrain to demonstrate this go to right to falling point and go through tunnel to go back and do it again if u missed it the first time here is the link BTW te 1 and 0 near the player is the Touching Ground attribute 1 is touching ground and can jump, 0 is after u jump
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
can anyone help me fix this problem (the one about air-jumping after falling)
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: 6109
Please post a screenshot of your updated behavior.

rojasstencylman

  • Posts: 198
here it is (yes i do realize what the problem is its just that idk how to fix it)
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: 6109
Try moving the "set Touching Platform? to 0" to the very end of your "always" (after the last "otherwise if".)