wall slide anyone??

This forum is currently in read-only mode.
From the Asset Store
Wall Pin Board is a hyper causal game developed for fun and inspired by YouTube video whose link is given in description
  • I have no idea how to set up a wall slide! can someone help me please??

  • Behold JUMPING SLIDING BLOCK http://files.getdropbox.com/u/888303/Caps/jump_man.cap

    Also added a Jump from Slide.

  • OMG thats awesome!!! Thank you so much! But um....do you think you can explain to me what exactly is going on in the events and how can I go about speeding up how fast the cube slides down the wall?

    *update!*

    Nevermind, I think I understand whats goin on in the events. BUT I did notice that the cube slides down the wall regardless if your holding the direction or not. for example, if I jump right towards the wall if I left go of right it still slides down. Is there a way to make it slide ONLY if your holding the direction of the wall? Hope I make sense. Thanks!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You can add 2 new conditions into the first event to check if "Move Right" or "Move Left" is held down.

    Sprite has wall to right
    "Move Right" is down
    OR
    Sprite has wall to left
    "Move Left" is down
    
    

    Sprite Set maximum Y speed to 50

    [/code:sgyzdxt1]

  • Is there a way to make it slide ONLY if your holding the direction of the wall?

    Yes. Add conditions to your events that check both if there is a wall to one side and if the corresponding key is being held down.

    Something like this:

    + Control "Move Right" is down
    + Sprite is overlapping Wall at offset (2, 0)
    + Whatever other conditions
    
    + Control "Move Left" is down
    + Sprite is overlapping Wall at offset (-2, 0)
    + Whatever other conditions
    [/code:dys30cu1]
    
    Edit:  Beaten by mere seconds!  But whatever, I'm posting it anyway
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)