lionz's Forum Posts

  • Does the touched NPC event have the sub events ? I would try and understand the file so you can suit it to your game. Copy and paste you will get lost later on if bugs occur.

  • Also I just noticed you are settin the fps to a text object every 0.2s which might not give good results so I hope you're not using that, again in the debug preview it shows the FPS.

  • Well I had a good look at it and I don't see any potential performance issues.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Is that all nested under the every 0.2 seconds? I can't really help with this it looks convoluted and I don't know what's going on. Maybe there is a simpler way to do what you want though.

  • Not sure what the screenshot is showing but this could be a common error where you forget to link an event sheet. Layout 2 should have an assigned event sheet, check in layout properties.

  • We would need to see all the events to give an idea, this event looks like its indented a lot of times as a sub event. For example calling a function is not going to resolve anything if those events are running every tick.

  • That's great then, 7mb is very low. Your objects must be using the same graphics.

  • What is the memory usage it should show it in debug preview

  • The memory usage is? The problem will be with 600+ sprites with animations not the Fade behaviour which is just changing opacity of the object.

  • Your file won't open so I don't know how you broke that. I think all you need though is condition animation frame = item.ID add 1 to amount, Else add to empty slot.

  • How did you pause it? :D

  • Your logic is the wrong way round, you first need to check if the slot exists which you are doing at the bottom. Then you can add an Else and run the logic that is currently at the top. I always promote the use of arrays for inventory though, it's much better and easier.

  • You could use an array or the 3x3 grid but if you know how to manipulate an array in that way then you might as well redo the inventory so it uses an array. I don't know how 3x3 works in minecraft but if using an array, each of the 9 slots relates to an xy o the array, when you drop an item in you set the item name in the array. I don't know what it's looking for in a 3x3, but if it was 2 items you would compare the items at X=0 and X=1 and see if it matches a recipe. Recipes would probably be in a second array for comparison.

  • I'm not familiar with minecraft, how does the crafting work? Or what do you expect to happen? I guess you didn't use an array, that will make it more difficult but it's still doable.

  • A recipe would be itemA + itemB = new item. To check if you have those items you use an identifier I guess in your case the ID, or an item name.