Virpoja's Recent Forum Activity

  • blackhornet, I checked out your example. It`s still not working however... I made couple of tweaks since code you added was pointing to wrong object i think (it moved the item slot instead of the item). But i did n`t get it to work after that either. I think the solution you are offering will work it just needs a way to select the correct instances for the position switch (correct instances of Item1 sprite, that is). Well it`ll work eventually , thanks for your help so far guys.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Scofano, thanks for reply I see what you mean. However can you be little more specific how to achieve this, like how to pick instances vie events etc. I get the idea but I am having really hard time creating events for it.. Anyway thanks for your help

  • Thanks for your reply Blackhornet, double family thingy looks like it might work. I have to try it when I have little more time and little less tired brains. <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

    Also here`s the Capx via Dropbox if someone wants to take a look.

    https://dl.dropboxusercontent.com/u/137 ... ample.capx

    Thanks

  • Hello, here`s the thing:

    I am creating a inventory system that is its own layout and I am storing object data such as armor etc. in to instance variables of the sprite. Item creation (transferring collected items from actual level via Web storage) is working fine and the correct values are transferred.

    Inventory system works like this: you click object and then you click item slot and item moves to that slot. This also works fine.

    My problem is this: I can`t figure out how to switch two instances of the same sprite in to each other's positions.

    So i need to have it working like:

    Click Item1 in inventory slot 2

    Click item2(same sprite but different instance) in inventory slot 4

    Item1 snaps to inventory slot 4 & item 2 snaps to inventory slot 2.

    I tried to attach Capx but it kept saying that uploaded file is empty...

    Thanks in advance

Virpoja's avatar

Virpoja

Member since 1 Jan, 2013

Twitter
Virpoja has 131 followers

Connect with Virpoja

Trophy Case

  • 11-Year Club
  • x2
    Popular Game One of your games has over 1,000 players
  • x2
    Famous Game One of your games has over 10,000 players
  • Viral Game One of your games has over 100,000 players
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

18/44
How to earn trophies