wall slide anyone??

For questions about using Classic.

Post » Tue Jul 07, 2009 11:46 pm

I have no idea how to set up a wall slide! can someone help me please??
B
4
G
3
Posts: 23
Reputation: 946

Post » Wed Jul 08, 2009 1:47 am

Behold JUMPING SLIDING BLOCK [url:3r0d5p65]http://files.getdropbox.com/u/888303/Caps/jump_man.cap[/url:3r0d5p65]
Also added a Jump from Slide.
B
4
S
2
G
4
Posts: 719
Reputation: 2,938

Post » Wed Jul 08, 2009 2:37 am

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!
B
4
G
3
Posts: 23
Reputation: 946

Post » Wed Jul 08, 2009 6:31 am

You can add 2 new conditions into the first event to check if "Move Right" or "Move Left" is held down.

[code:sgyzdxt1]
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]
B
3
G
3
Posts: 12
Reputation: 899

Post » Wed Jul 08, 2009 6:31 am

[quote="eclipsemod":dys30cu1] Is there a way to make it slide ONLY if your holding the direction of the wall?[/quote:dys30cu1]

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:

[code:dys30cu1]
+ 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 :P
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests