Issue with PlayerBox falling - HELP

Get help using Construct 2

Post » Sat Sep 05, 2015 5:06 am

Hey guys, so I have this issue check out the video below... One thing I forgot to mention in the video is all collision boxes are set just fine on the terrain.

http://screencast-o-matic.com/watch/coQhhefGVY
B
4
Posts: 24
Reputation: 250

Post » Sat Sep 05, 2015 6:16 am

on falling you have set the vector position to -700Y, not really sure what that's for.

Also, i dont think you need the Player box object. You can set the collisions of the raptor to bounding box and give the raptor sprite platform bahaviour.
B
9
S
3
Posts: 104
Reputation: 1,033

Post » Sat Sep 05, 2015 7:02 am

Frostein wrote:on falling you have set the vector position to -700Y, not really sure what that's for.

Also, i dont think you need the Player box object. You can set the collisions of the raptor to bounding box and give the raptor sprite platform bahaviour.


Thanks for the reply. I used the platform game tutorial which said to use a playerbox, is there no need?

The falling set to -700Y is only set to happen on collision with the enemy, so the player bounces back on it. That has nothing to do with the terrain.
B
4
Posts: 24
Reputation: 250

Post » Sat Sep 05, 2015 7:12 am

It is always better to have a dummy sprite with the behavior that has the animations pinned to it, as collisions with an animated object can cause some problems. That's why it is recommended in the tutorials.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
137
S
31
G
87
Posts: 5,557
Reputation: 60,458

Post » Sun Sep 06, 2015 12:41 pm

Bump, any ideas guys?
B
4
Posts: 24
Reputation: 250

Post » Sun Sep 06, 2015 1:20 pm

Virtually impossible to fault-find from a video. Best bet is to post a ,capx. If you can't post your current one, then try to recreate with dummy gfx.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
137
S
31
G
87
Posts: 5,557
Reputation: 60,458

Post » Sun Sep 06, 2015 4:37 pm

Make the boxes visible so you can see what's happening with them. It looks like maybe the blue PlayerBox has the platform and scrollTo behaviors on it so it could be moving along in front of the raptor and then falling down.
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,680

Post » Sun Sep 06, 2015 5:32 pm

ramones wrote:Make the boxes visible so you can see what's happening with them. It looks like maybe the blue PlayerBox has the platform and scrollTo behaviors on it so it could be moving along in front of the raptor and then falling down.


With the red Playerbox (raptor) visible I can't get it to happen. But when I make it invisible it happens.
B
4
Posts: 24
Reputation: 250

Post » Sun Sep 06, 2015 5:38 pm

I figured out the issue. I was testing 2 characters with 2 playerboxes (red and blue). I was disabling the events for one character at a time, however I didn't realize even though the events were disabled for the other character, it's playerbox would still move with the keyboard controls. Thanks Ramones for the tip about both playerboxes having scrollto enabled, that put me in the right direction.
B
4
Posts: 24
Reputation: 250


Return to How do I....?

Who is online

Users browsing this forum: hao102a2 and 26 guests