Have one object jump onto another

Get help using Construct 2

Post » Wed May 01, 2013 9:49 pm

So I have several identical characters walking around with the solid attribute. When they collide they change directions.

I want to have them stack on top of each other, possible with a little space in between. When I do that, a collision is detected and they go left right left right etc. What's going on here and how can I fix it?

I tried another method by just clicking on the character to have him jump on top of another. When they collide they change directions even if I have the condition that they must be on the ground for them to change directions. How would I get this to work?
B
10
S
4
G
3
Posts: 103
Reputation: 2,984

Post » Wed May 01, 2013 10:41 pm

1. make a little sprite, set opacity to 0, give it an Solid attribute as well Name="Space"
2. create a new Image point to very top of your character name it "head"
3. Add Event every tick --> "Space" set position to another Object --> Character at Image point " Head"
4. Done

Ps: make the width of the space sprite more little than your character-head width

yonda
B
18
S
6
G
3
Posts: 197
Reputation: 4,129

Post » Thu May 02, 2013 12:02 am

Thanks @yonda. I knew there was some simple solution.
B
10
S
4
G
3
Posts: 103
Reputation: 2,984

Post » Thu May 02, 2013 4:03 am

@yonda

I'm now unable to jump though. I tried giving the invisible sprites platform behavior and simulating a jump whenever their corresponding characters jumped (using private variables), but it didn't work.
B
10
S
4
G
3
Posts: 103
Reputation: 2,984

Post » Thu May 02, 2013 5:59 am

could you upload a capx or make some screens plz
B
18
S
6
G
3
Posts: 197
Reputation: 4,129

Post » Thu May 02, 2013 6:23 am

@yonda

https://www.dropbox.com/s/86njqxs66g8nink/Little%20Robots%20-%2005-01-2013.capx.backup1bachrock2013-05-02 20:15:33
B
10
S
4
G
3
Posts: 103
Reputation: 2,984


Return to How do I....?

Who is online

Users browsing this forum: imnotspecial, totoe and 10 guests