How do I make system display a sprite?

Get help using Construct 2

Post » Tue Apr 25, 2017 4:43 pm

I thank you all the people who have tried to help me before with this topic and apologize for my ignorance and basic knowledge in programming.

I am trying to create an application to teach children how to read and write.

So, I have 2 main FAMILIES OF SPRITES, one NOUN and the other ADJECTIVES.

ADJECTIVES (BIG, SMALL, BLUE, RED ETC...)
NOUN (CHAIR, BOOK, DAY, FLOWER ETC..)

SYSTEM RANDOMLY PICS ADJ + NOUN, I got that covered. Now when user clicks on the right combination, for example: " BIG CHAIR" I would like SYSTEM TO DISPLAY a BIG CHAIR, I have the graphics, of course.

I can't seem to find a way to create variables to make that happen.

Thank you.
B
19
S
4
G
2
Posts: 97
Reputation: 2,244

Post » Tue Apr 25, 2017 4:59 pm

personally i would create a string or you could use an array it depends your knowledge in programming
Image
B
25
S
14
G
12
Posts: 291
Reputation: 9,404

Post » Tue Apr 25, 2017 5:22 pm

LaurenceBedford wrote:personally i would create a string or you could use an array it depends your knowledge in programming



I might be able to help you with the art. Maybe we can help each other. But your email address isnt right.
B
19
S
4
G
2
Posts: 97
Reputation: 2,244

Post » Tue Apr 25, 2017 5:25 pm

Sounds good the correct email address
[email protected]
Image
B
25
S
14
G
12
Posts: 291
Reputation: 9,404

Post » Tue Apr 25, 2017 5:37 pm

the simplest way is to use lists, but it may not scale well.

make a sprite, add an animation for each noun, rename the animations to the noun, add the adjectives to the frames in a consistent order.
add a noun-list and an adjective-list.

noun-list on selection changed --> sprite set animation to noun-list.selected text
adjective-list on selection changed --> sprite set frame to adjective-list.selectedindex
B
25
S
16
G
26
Posts: 125
Reputation: 16,103

Post » Wed Apr 26, 2017 4:59 am

celstrider wrote:the simplest way is to use lists, but it may not scale well.

make a sprite, add an animation for each noun, rename the animations to the noun, add the adjectives to the frames in a consistent order.
add a noun-list and an adjective-list.

noun-list on selection changed --> sprite set animation to noun-list.selected text
adjective-list on selection changed --> sprite set frame to adjective-list.selectedindex



HERE'S the http://www.geocities.ws/alvoradaespirit ... sEasy.capx

I goint to repost this. Maybe I didnt make myself clear and I truly apologize for my ignorance.

This game is to help kids to read.

What I am trying to achieve is: User clicks on ADJECTIVE AND NOUN, depending on combination it will display a graphic, if you can help I appreciate it, see CAPX:

http://www.geocities.ws/alvoradaespirit ... sEasy.capx
B
19
S
4
G
2
Posts: 97
Reputation: 2,244

Post » Fri Apr 28, 2017 3:37 am

you can still use lists to achieve that.

https://www.dropbox.com/s/rg1bubyekalew ... .capx?dl=0
B
25
S
16
G
26
Posts: 125
Reputation: 16,103

Post » Thu May 11, 2017 2:06 pm

celstrider wrote:you can still use lists to achieve that.

https://www.dropbox.com/s/rg1bubyekalew ... .capx?dl=0








thank you!!!!!!!!!!! :)
B
19
S
4
G
2
Posts: 97
Reputation: 2,244


Return to How do I....?

Who is online

Users browsing this forum: 25games, Google [Bot], jatin1726, kiki4construct, Username05 and 32 guests