CloudShy's Recent Forum Activity

  • I try to make an easier explanation:

    I have a nine field big Inventory, i you put down an Item to a Field the stats are applied.

    But how can i check if the Item is moved out of the field where its placed before?

    Here you can try it:

    cloudshy.square7.ch/Games/show/index.html

    Movement with w,a,s,d. The Red rectangle is the Item, you can move it with your mouse at the Inventory, if you place it at a field at the inventory, a speed boost is applied, but if you move it out of the Inventory again, the boost is still there, and you can place the Item once at every field, so you can get the boost nine times.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I dont upload the capx cause its private but i can explain the events i used for the Inventory.

    Item = the Sprite with the Droppable Items and Stats in it

    Slots = The Sprite for the Inventory slots(slot is the Instance Variable to specify wich Instance is wich Field in the Inventory)

    Inventory = Array for the Inventory(First Dimension for the Inventory Slot, The second for the Item stats)

    The Event looks like this:

    -------------------------------------------

    Item on Drop and Item is Overlapping slots

    -------------------------------------------

    Item set position to Slots (To place the Item at the Middle of the Field)

    Inventory set value at (Slots.slot,0)to Item.AnimationFrame (each frame is one Item)

    Inventory set value at (Slots.slot,1)to Item.Speed (Speed is the Instance Variable for the Speedboost, the other Item stat are in the following Fields like (Slots.slot,2) and so on...)

    ------------------------------------------------

    This is what i now have, but i dont know how to check if a Item is moved.

  • Im working on a Top-Down-Shooter with Random Itemdrops.

    The Inventory has 9 Fields (1 Item in 1 Field and every Item can be placed in every field).

    The Items have Statusboosts like faster Movement oder more Shooting Damage.

    It works to place Items into the Inventory and the Statusboosts are working too. But i dont know how to check if the Item is moved outside the Inventory or to another Inventoryfield. Now i can place the Item once at every Field and get the Boost 9 Times.

    I made the Item with Animationframes(1 Frame is 1 Itemgraphic) and the Stats are Instance Variables.

    The Inventory is made out of one Sprite with an Instance Variable to specify wich Instance is wich Field.

    The Stats from the Items placed in a Field are Saved in an Array, one Dimension spezifies the Field the Item is placed in, the Other Dimension the Item Stats.

    Hope you can help me with this problem.

    Sorry, if you dont understand parts of it, my english is not the best.

  • Very nice work, looks awesome <img src="smileys/smiley32.gif" border="0" align="middle" />

CloudShy's avatar

CloudShy

Member since 16 Oct, 2013

None one is following CloudShy yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies