Condition problem

Get help using Construct 2

Post » Sat Aug 08, 2015 11:22 pm

for example:
What condition do I find the analysis that is behind an object to another?
B
14
S
2
Posts: 66
Reputation: 776

Post » Sun Aug 09, 2015 2:09 am

what? more specifics please? i cant really comprehend what you mean by that.. :D if you mean by a performance bench you can try the debug mode... if not please rephrase
B
76
S
22
G
69
Posts: 1,353
Reputation: 43,833

Post » Sun Aug 09, 2015 4:09 am

Sprite - On collision with another object
(sub event) Sprite Pick top/bottom -> do action

you can find the top/bottom choice in the very lower right of the "add event" window in the Zorder section
B
87
S
44
G
16
Posts: 1,005
Reputation: 17,938

Post » Mon Aug 10, 2015 3:55 pm

I dont understand sprite pick. The documentation was not found.
Pls help better.
B
14
S
2
Posts: 66
Reputation: 776

Post » Mon Aug 10, 2015 6:33 pm

It's in the manual under common conditions:
https://www.scirra.com/manual/131/common-conditions
B
92
S
32
G
109
Posts: 5,290
Reputation: 70,991

Post » Mon Aug 10, 2015 6:39 pm

"Picking" in construct is the term used for specifying which objects you are going to apply an action to.

All of them, or specific ones etc.

if you were to say:

On start of layout -> Player destroy
it would destroy all Players in the game

but if you were to say
on start of layout
(sub event)
Pick by evaluate, Player.name = "hero" -> Destory
it would only destory the player who's instance variable "name" is "Hero"

so with your overlapping example.

First you need to determine which objects are overlapping

Player on collision with another object (object 2)
(sub event) pick Top/Bottom -> Actions
Once the two objects overlap -> you use the "pick top/bottom" to pick which object specifically you want to do the actions to. Either the top or bottom object.

On collision with another object is a form of picking a specific object

just like "pick by evaluate", or pick nearest/farthest etc
B
87
S
44
G
16
Posts: 1,005
Reputation: 17,938

Post » Mon Aug 10, 2015 7:05 pm

I do not think so the question.
I want to state that one cube to another cube is whether the right or left side .
How?
B
14
S
2
Posts: 66
Reputation: 776


Return to How do I....?

Who is online

Users browsing this forum: Artcadev, Iakkery and 31 guests