How do I condition using this same sprite but different variables and frame animation?

0 favourites
  • 2 posts
From the Asset Store
Selection frame like in RTS games, works both on mobile and desktop devices.
  • i have working slot inventory in my game.

    I need to do condition, if player have in slot 1 item X have animation frame 1 (first frame is wood for example) and in other slot i have animation frame 2 (steel)

    ALSO each slot have variable called 'ammount' and each slot have different numbers for wood or steel in backpack

    So i make this event logic but dont work

    i need to check inventory for this two items in slots to make event 'CRAFT'

    Also i try this combination but also dont work

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You have nothing to determine what is slot 1 or slot 2 ? You need something additional like an instance variable for slot number and pick that way. Also you can't pick in this way as the first condition narrows it to only slots that have animation frame 1. There will be a better way to go about what you're attempting, probably where you determine if you have wood or steel in separate events.

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