"Overlaps at offset" explanation?

Get help using Construct 2

Post » Fri Jun 14, 2013 10:19 pm

Someone could say me, what does this parameters mean? or in general, how to work ? because I do not understand.. thank you!

offset por shimozurdo, en Flickr[/IMG]
B
14
S
4
G
2
Posts: 109
Reputation: 2,679

Post » Fri Jun 14, 2013 10:22 pm

Offset is position from a sprite collision where you put the coordenates on layout.
B
92
S
32
G
29
Posts: 3,131
Reputation: 27,918

Post » Fri Jun 14, 2013 10:31 pm

Lets say, that you want to destroy a sprite, when the other sprite is closing to it. Positive offset means, that when you reach lets say 100 px radius to the sprite it is destroyed, on the other hand if the offset is negative, you must go "inside" the sprite you want to destroy.
An example:

http://www.upload.ee/files/3382828/test.capx.html
B
14
S
5
G
4
Posts: 107
Reputation: 4,788

Post » Fri Jun 14, 2013 11:12 pm

OK for I could see your example @trollface I need the latest version, but I have other download in progress right now jejje,
well anyway, I want to know if I do is

offset y==5 >>to objet (B)

means that a object(A) could be destroy(for example this action) if it reach to 5 pixels "before" of collide with the Object (B)
B
14
S
4
G
2
Posts: 109
Reputation: 2,679

Post » Fri Jun 14, 2013 11:35 pm

Overlap at offset checks if the object A_PLAYER is overlapping [SELECTED OBJECT] at an offset from it's current position

So if you have A PLAYER check if it's overlapping HORIZONTAL at an offset of x5 y0, it would check if A_Player.X+5 would make A_Player overlap HORIZONTAL.
B
21
S
8
G
6
Posts: 346
Reputation: 4,891

Post » Sat Jun 15, 2013 12:36 am

OK guys thank you very much everybody!
good example @trollface
B
14
S
4
G
2
Posts: 109
Reputation: 2,679


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 8 guests