Compare object frames that overlaps another

Get help using Construct 2

Post » Sat Nov 02, 2013 2:31 pm

I have a sprite with 10 frames and 10 text fields with numbers in words. Wanted to know how I can do to check if a sprite set with frame 5 is overlapping a text field with the word "five"? I know that if I used separate sprites would be simpler, but I want to see if I can do this with frames. Thank you.RenatoB2013-11-02 14:36:24
B
74
S
13
G
4
Posts: 1,006
Reputation: 8,060

Post » Sat Nov 02, 2013 2:51 pm

sprite is overlapping textbox
textbox.text = "five"
sprite frame = 5: do stuff

use a dictionary to connect numbers with typed numbers if you wanna use a more general expression
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 788
Reputation: 3,788

Post » Sat Nov 02, 2013 4:47 pm

Hi @mindfaQ

I did exactly that and it didn't work. I discover the reason after: I put it all under "Trigger" event. Thanks anyway.RenatoB2013-11-02 17:55:30
B
74
S
13
G
4
Posts: 1,006
Reputation: 8,060


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 17 guests