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
4
S
1
Posts: 3
Reputation: 306

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
47
S
17
G
81
Posts: 2,225
Reputation: 48,097

Post » Sun Jan 29, 2017 12:05 am

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


Return to How do I....?

Who is online

Users browsing this forum: Artcadev and 21 guests