How do I funcions using same sprite in multiple overlap

Get help using Construct 2

Post » Sat Jan 28, 2017 11:28 pm

hello everyone, i am a programer of c++ and java and i am new on construct2. I am trying to make a function and i need some help.

i want try to use the same sprite on 3 door using a instance variable with number of the zone, using only one text box i can change the text of the text box when the player is overlaping each door? for example when the player is overlaping door with the instance variable 1 the text box show 1, is if overlaping the door with instance variable 2 text box show 2 and that for each other door.

it if that possible? use the same sprite overlaping effect on different intances? how i can get the code of each overlaping instance effect?

thanks for you time
B
5
S
1
Posts: 3
Reputation: 331

Post » Sat Jan 28, 2017 11:45 pm

The event would be if player is overlapping door, set textbox.text to door.variable. The door picked in the event will be the variable used in the text.
B
52
S
21
G
93
Posts: 2,414
Reputation: 55,016

Post » Sun Jan 29, 2017 12:05 am

cool that work, i need more test thanks you
B
5
S
1
Posts: 3
Reputation: 331


Return to How do I....?

Who is online

Users browsing this forum: blackhornet, inozz, sebrosen, TheMob000 and 2 guests