Basic WallClimb Example

Post your own tutorials, guides and demos.

Post » Fri Nov 05, 2010 9:41 pm


[url:3s3j0o5l]http://dl-web.dropbox.com/u/7658043/wallclimb.cap[/url:3s3j0o5l]

A very basic example of how to climb walls and scale cielings.

leftshift = jump
Up Arrow key down = Climb up
Up + Right or Left Arrowkey = Scale Cieling left or right.
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141

Post » Sat Nov 06, 2010 2:18 am

:P
I like how you didn't put a space in between wall and climb, used climb instead of climbing, and capitalized both words.

I wonder what you've been playing recently. :)
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Sat Nov 06, 2010 7:34 am

[quote="Davioware":3uqul5tv]:P
I like how you didn't put a space in between wall and climb, used climb instead of climbing, and capitalized both words.

I wonder what you've been playing recently. :)[/quote:3uqul5tv]

Yes ,when will that awesome game of yours be availible Davio?.I love Towerclimb.
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141

Post » Mon Nov 08, 2010 4:19 am

I like your example and I have a couple of comments that some readers may find helpful.

In your .cap, it may be noticed that the player starts to fall when the "up" key is released but only while stuck to a wall on his left, (when the "up" key is released when the player is stuck to a wall on his right, the player does NOT go anywhere.)

I am not sure if that was intentional, but this can be fixed 2 different ways:

To make the player STUCK when the "up" key is released on BOTH walls:
a. Insert condition "has wall to left" in event 1
b. Insert condition "OR" in event 1
c. Delete events 4 and 5

Event 1 should look something like this:
1 sprite3 has wall to left
OR
sprite3 has wall to right
2 ......


In order to change things so that the player falls while stuck to either wall, KEEP my changes from above and add another SUB-EVENT to event 1 and most importantly remember to INVERT this new condition:

(inverted condition) Player 1 "move up" is down Sprite 3: set gravity to 1000
B
17
S
5
G
3
Posts: 9
Reputation: 1,593

Post » Mon Nov 08, 2010 11:36 am

[quote:1xbj0b3n]In your .cap, it may be noticed that the player starts to fall when the "up" key is released but only while stuck to a wall on his left, (when the "up" key is released when the player is stuck to a wall on his right, the player does NOT go anywhere.)[/quote:1xbj0b3n]

Yes this was done intentionaly to show the two different conditions of how to impliment the wallclimb.One where you fall when the up key is released and one where the player is stuck to the wall like spiderman. :wink:
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141

Post » Tue Feb 22, 2011 10:52 pm

[quote="Davioware":l5kc6hvi]:P
I like how you didn't put a space in between wall and climb, used climb instead of climbing, and capitalized both words.

I wonder what you've been playing recently. :)[/quote:l5kc6hvi]

no one likes a grammer fag
B
1
G
1
Posts: 6
Reputation: 437

Post » Tue Feb 22, 2011 11:02 pm

[quote="Leafblight":1hy1vp2f][quote="Davioware":1hy1vp2f]:P
I like how you didn't put a space in between wall and climb, used climb instead of climbing, and capitalized both words.

I wonder what you've been playing recently. :)[/quote:1hy1vp2f]

no one likes a grammer fag[/quote:1hy1vp2f]

I think you missed the boat.
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Fri Feb 25, 2011 10:16 pm

[quote="Leafblight":31wg0k9c]no one likes a grammer fag[/quote:31wg0k9c]

Grammar.



And hello to you too sir. Please look at my sig.
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620


Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 1 guest