magentamajors's Forum Posts

  • Hi,

    I am practicing arrays. I understand the concept of a spreadsheet and cells. The problem I'm having is picking the inventory slot to populate on the inventory screen without assigning a specific slot to each item. I would like the computer to pick the first empty slot.   I tried to read the inventory capx tutorial, but they are more focused on how an array works than on how one would use an array in game.

    dropbox.com/s/1ptx6m1b4batzpy/arraypractice.capx

    The first action for the item was to compare the array and make sure the item inventory was > or = to 1 so that it would not populate a slot if there was 0 in the array.

    The second condition is where I'm having problems. The action for the condition (spawn item at inventory.x and inventory.y) is working.

    I tried to set the inventory slot to have a boolean value of filled/ not filled and then have the system action be pick slot by comparison, then toggling the boolean.   Item 2 ended up spawning over item one in the same inventory slot.

    I tried to set the instance variable on the inventory slot to a number, then use system-> pick by evaluate, but again, item 2 spawned over item 1.

    I tried making the boolean instance a condition instead of having the system check, but that ends up populating all of the empty slots and spawning a large number of items.

    I was able to get both items to display properly by setting the system pick to the slot IID, but I would like the system to pick the next empty slot, not the same slot each time.

    Any suggestions, or is there an example capx I can see the structure for populating slots on?

    Thank you

  • Holy sh*t! Carrie! I can't reply via this website cuz my rep isn't high enough

    I face booked you instead

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi scirra community,

    I made a game! It is called Beatrice Attacks, and I put it on Kongregate so that I could link to it here and y'all could see it.

    I'm not experienced enough to add urls to this post, and I can't find it on Kong without going to my user page first, so I will explain my problem.

    When I run to game in C2 and hit "play" and it pops up in my browser, it's way bigger than when I upload it to Kongregate, because I can scale it to fit the window and I make the browser window big. Even when I click on cinematic view, the game is roughly 1/2 to 2/3 times smaller than what I intended.

    Is there a setting on "Export" to make it export to a bigger size or should I be looking for a setting on Kong to resize it?

    Also, I made a video game! And it's on Kongregate! I'm very excited about this. I'm thinking I could make something...complete...if I buy the full version.

    Thanks!