Change the Sprite appearence according to array

Get help using Construct 2

Post » Sat May 24, 2014 8:50 pm

Hi guys! :)

I'm trying to create something like a supermarket.

I have about 100 products, with 100 different images each. But the player can only see two of these products.

My first question is: How can I make a sprite (Sprite1 or Sprite2) to display the product image according to my array. Ie: Banana, on Sprite1 and Apple on Sprite2.

Second question is: I have a Sprite3, which will display the Sprite1 or 2 figure (banana or apple), but larger, according to which sprite the user's mouse is over.

I don't know if I made myself clear... Thank you for your attention! :)
B
6
S
1
Posts: 56
Reputation: 862

Post » Sat May 24, 2014 9:16 pm

I am not sure if I understand your question properly
Is this what you are looking for? :)
You do not have the required permissions to view the files attached to this post.
It's time for me to return the favor :)
B
32
S
9
G
8
Posts: 132
Reputation: 4,870

Post » Sat May 24, 2014 11:05 pm

Thanks!

Almost that. But instead of increasing the scale of the three squares to the left, the right one (blueberry) increase the scale and is equal to the fruit that my mouse is over.

For example: mouse is over Banana, then the square to the right turns yellow and then increase size.

In any case, your example really helped a lot!
B
6
S
1
Posts: 56
Reputation: 862

Post » Sun May 25, 2014 7:04 am

Here ya go
You do not have the required permissions to view the files attached to this post.
It's time for me to return the favor :)
B
32
S
9
G
8
Posts: 132
Reputation: 4,870


Return to How do I....?

Who is online

Users browsing this forum: plinkie, R0J0hound, SERG 04 and 3 guests