enum pirate's Forum Posts

  • I've been spending a long time trying to get this working and I always seem to run into a problem. I'm not even sure if it's possible to stack items into an inventory with the way I've made my game but here's what I've figured out so far:

    I create an array and tiled background for the inventory. When I run into an item I pick it up and then I start a loop. The loop basically goes through each spot in the array and looks for an empty space to place the item.

    Everything up to this point works great but I can't get the picked up item to recognize when I already have the same item in my inventory. I want to make it so that:

    -There can be multiple stacks of an item type with a maximum amount of the item in each stack. (So if I want a stack of bullets the max in one stack can be 10)

    -The picked up item goes to the smallest stack.

    -Shooting a bullet, for example, will take away one item from the stack (assuming the stacked item is a bullet).

    Is this even possible using just an array or am I just driving myself crazy?

  • Looks really cool but you should make the screenshots actual screenshots instead of pictures of your phone.

    It'll show off the neat art style better.

  • Good job on this I think it could be really useful for some people.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm working on lighting for derelict ship interiors this week.

    Nice! I really like the character.

    Woah, that's some nice lighting.

  • ----------------------------------------------

  • A simple survival game with procedural generation.

  • Any way to make the corridors a bit bigger or spawn objects in them?

  • --------------------

  • -------------

  • I made a spaceship game a while ago and I had a similar method which worked. I'll try and find the capx if I still have it.

  • Are you saying you want the car to face the proper way while following a path?

    If so you could have another invisible object follow the path ahead of the car and make the car's angle to the object be the direction that the car faces.

    Probably not the best method but I'm pretty sure that might work.

  • Just took down the links.

    Appreciate the help!

  • Really creative, I didn't even know this was possible to do!

  • The art is clean and pretty appealing, great job.

  • In construct classic there was a feature for functions to remember which objects were last picked but I have not found this feature in Construct 2. I have looked all over the manual and nothing has come up about this. Is there another way to implement this in Construct 2?