Change the Sprite appearence according to array

0 favourites
  • 4 posts
From the Asset Store
Simplistic hyper-casual game with nature elements. Tap to switch between the 4 elements and reach a better score.
  • 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!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I am not sure if I understand your question properly

    Is this what you are looking for?

  • 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!

  • Here ya go

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)