How do I Integer pixel accurate.

Get help using Construct 2

Post » Wed Oct 22, 2014 1:16 am

Hi! I want to compare exact positions.
What kind of behavior is better?
* Bullet
* Custom

I am experimenting with bullet, but without success.
When the object reaches a high velocity shot goes off screen.

Here is the source file:

https://db.tt/YOtWvYpH
B
47
S
12
G
5
Posts: 124
Reputation: 6,851

Post » Wed Oct 22, 2014 1:51 pm

You're going to have to explain in more detail what you're attempting to do here. Are you just trying to confine this object to an area? Is there a reason your detection areas are so small? The way you're doing it, it's natural that on some frames -- depending on timedelta or where the object is in relation to the detection areas -- your object will move far enough to jump over the detection areas, or even miss them entirely because they weren't in the object's path. It shouldn't matter which behavior you use, your results will likely be the same.
Moderator
B
113
S
41
G
20
Posts: 1,586
Reputation: 19,116

Post » Thu Oct 23, 2014 12:35 am

Thank you! I am currently developing a different game mechanics.
B
47
S
12
G
5
Posts: 124
Reputation: 6,851


Return to How do I....?

Who is online

Users browsing this forum: asdtricky, brunopalermo, ST314, Yahoo [Bot] and 21 guests