Proper overlap condition under the else branch

Get help using Construct 2

Post » Tue Jan 14, 2014 12:23 am

Right now I am constantly experiencing an issue of collision detection under nesting. Specifcally it has to do with overlapping objects under the else condition.


Download source (test for collision case using debugger)
https://www.dropbox.com/s/q72nmbqrwtevvqb/sftahg_0_2_1_2.capx

The first case

image link:


http://s179.photobucket.com/user/Johnshi/media/line_30_else_overlap_bug.png.html


I did as much as I can to get the corner objects to overlap the arrows, but the system will always label it false on line 30 but line 28 is always true. I am wonder from you guys on how I can properly check collision for the dot object despite being within rangeJBRPG2014-01-14 00:27:26
B
10
S
2
G
1
Posts: 13
Reputation: 1,134

Post » Tue Jan 14, 2014 5:15 am

Your Sign_esw frame 0 has an origin of 0,0

frame 1 has an origin of 0,3

so, when it is on frame 0, the objects never actually overlap it...
when I made the origin for frame 0 also 0,3 then it seemed to work fine.
B
99
S
35
G
20
Posts: 438
Reputation: 17,910

Post » Tue Jan 14, 2014 5:41 am

Thanks for noticing the mistake because I must have overlooked on the origin points.

Now the signs work as expected.
B
10
S
2
G
1
Posts: 13
Reputation: 1,134


Return to How do I....?

Who is online

Users browsing this forum: Bing [Bot], LunaticCat and 7 guests