How do I use the scrollx with dt? having collision problems.

Get help using Construct 2

Post » Mon Aug 04, 2014 4:51 pm

I'm having a bit of trouble trying to get my player sprite to detected collisions with my current scrolling setup below:

Image

Basically I have the Platform behavior moving the player forward, with the player's position offset to the left (it's an endless runner game). However, when the player collides with an object that is set to destroy it, the collision isn't detected, and the player sprite just sits in front of the obsticle. Is there a proper way to offset my player sprite, while using delta time so collisions are properly detected?
B
11
S
2
Posts: 29
Reputation: 706

Post » Mon Aug 04, 2014 7:50 pm

Can you eyplain your situation a bit more clearly, or maybe provide a file to look at? I'm not quite sure what you are trying to do and you would want the offset...
B
4
Posts: 5
Reputation: 202

Post » Tue Aug 05, 2014 2:08 am

Oh I've done this before.

As you can see I just used the overlapping at offset condition. so when center is overlapped 100 pixels to the left of it the score increases by 1. You can use this condition multiple times to have many places where the object can be overlapped at offset.

Don't forget you can use negative numbers for hitting the left and the right of the object (at offset).
You do not have the required permissions to view the files attached to this post.
B
18
S
8
G
1
Posts: 56
Reputation: 2,018

Post » Tue Aug 05, 2014 4:27 pm

JDunamis wrote:Oh I've done this before.

As you can see I just used the overlapping at offset condition. so when center is overlapped 100 pixels to the left of it the score increases by 1. You can use this condition multiple times to have many places where the object can be overlapped at offset.

Don't forget you can use negative numbers for hitting the left and the right of the object (at offset).


This helped greatly! I've tested it about 50 times so far and can't reproduce the problem. You sir, are the man!
B
11
S
2
Posts: 29
Reputation: 706

Post » Wed Aug 06, 2014 5:40 pm

I'm not the man xD. I give glory to God, Jesus Christ, that I was able to help you. I just figured this stuff out within the last week. I'm also building an endless runner type game for the first time. I hope to launch mine over several platforms with the diversity of Construct 2. God bless you on your endevors.

Please pm me if you have any other questions since we are building the same type of game we are probably running into the same problems xD.
B
18
S
8
G
1
Posts: 56
Reputation: 2,018


Return to How do I....?

Who is online

Users browsing this forum: Artcadev, brunopalermo, lahbach, ST314 and 18 guests