Help with player movement.

For questions about using Classic.

Post » Thu Mar 10, 2011 10:25 pm

[u:33oe7pkj]How do i make a player that uses platform behaviour perform the following actions ?[/u:33oe7pkj]



1, Click circle1 and the player walks to this position, then stops. (including walk animation).

2, Click on circle 2 and the player jumps onto the crate.(with animations)

3, Click on circle3 (the top one) and the player jumps up onto the platform.(with animations).

OR......from position 2 on top of the crate -

4, Click on circle 3 at the base of the ladder and the player walks off the crate and stops at the base of the ladder (with animations).

5, Click on circle4 and the player climbs up the ladder stopping at circle4.

Basically, i need the player to be platform behaviour based, but also respond to mouse clicks.

The ladder climbing part is not 100% needed, but the walking and jumping parts are.

Cheers
B
19
S
6
G
7
Posts: 1,205
Reputation: 7,298

Post » Fri Mar 11, 2011 9:28 pm

I'd use platform and rts behavior
here's quick example
It doesn't look nice, but you can see, it works. You would just need to use conditions and actions to set jump height, speed, direction...

edit: animations could be controled via play, stop animation and set frame actions, with a checker to know how far is ground, wall etc.
ImageImage
B
25
S
6
G
8
Posts: 773
Reputation: 6,643

Post » Fri Mar 11, 2011 9:37 pm

1st circle : Player has wall to right / Set animation to standing.Use rts movement move to crate.
2nd : jump key pressed, left mouse click / Set animation to jump/Set jump height for platform movement
3rd : jump key pressed / Set animation to jump.

you would have to use both platform and rts movement for this.
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141

Post » Fri Mar 11, 2011 10:00 pm

Here is the cap of what i could come up with.
Right click to jump and left click on crate to move to crate.
[url:35r3g9si]http://dl.dropbox.com/u/7658043/mousejumping.cap[/url:35r3g9si]
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141

Post » Sat Mar 12, 2011 9:26 am

Thanks for your help and cap files Noga and DranenX . Never used RTS before, but i remember downloading a couple of tutorials about it. Study time.
B
19
S
6
G
7
Posts: 1,205
Reputation: 7,298


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests