Platformer - ceiling grab?

For questions about using Classic.

Post » Tue Jun 22, 2010 8:23 am

Another noob question I'm afraid.

Whats the best technique to allow the player to hold the ceiling? I have set a sprite to act as the volume to define which areas are grabbable, which will be hidden, but I have no idea what to do next.

I want the player to be able to jump, hold the ceiling and move along it, then drop off when they want, or when hit.
B
3
G
2
Posts: 11
Reputation: 697

Post » Tue Jun 22, 2010 8:52 am

Here this quick example may help you out.

http://dl.dropbox.com/u/1646976/grabbing.cap

:)
B
46
S
23
G
7
Posts: 459
Reputation: 6,763

Post » Tue Jun 22, 2010 9:01 am

Cheers for the reply, but when I try and open the file, I'm getting an error message:

'an unknown error occured while accessing an unnamed file'
B
3
G
2
Posts: 11
Reputation: 697

Post » Tue Jun 22, 2010 9:07 am

What version of Construct are you using?

The example was made in 0.99.82.
B
46
S
23
G
7
Posts: 459
Reputation: 6,763

Post » Tue Jun 22, 2010 9:09 am

0.99.62

I only downloaded it about a week ago.
B
3
G
2
Posts: 11
Reputation: 697

Post » Tue Jun 22, 2010 9:12 am

Hey guys, just took a look at your .cap Minor and was able to simplify this down to one event. Saves on having to reverse the gravity and controls etc.

This is saved in the latest build of the construct 0.99.85

http://dl.dropbox.com/u/1487524/Scirra/CeilingGrab.cap

If you can't open it, the line goes like so


Player1 "Move Up" is down
Player overlaps at offset y-1 ---- Player set vertical speed to 0


As a side note, the latest builds of construct(potentially unstable) are posted here: viewtopic.php?f=2&t=6488
The one on the main page is the latest stable build
B
9
S
2
G
4
Posts: 346
Reputation: 2,726

Post » Tue Jun 22, 2010 9:26 am

Nice Steven.

I used the gravity setup so I could switch the gravity in the game too, not just for ceiling grabs/crawling. That way I could have reverse gravity areas, gravity traps and other stuff.

Here's the game in action - http://www.youtube.com/watch?v=gA_c3jh6IQo

Never got past the playing around stage though. :(
B
46
S
23
G
7
Posts: 459
Reputation: 6,763

Post » Tue Jun 22, 2010 9:32 am

Cheers guys - I downloaded the latest build. Thans for all your help :)
B
3
G
2
Posts: 11
Reputation: 697


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 7 guests