spokplumpen's Recent Forum Activity

  • Hi all! I am using a program called spiriter pro. It's very good program to make aminations with complicated body moves. I understand that this forum may a wrong forum to send my questions.

    My problem:

    The game's CPU usage remains at less than 11%. It's a big game and I am very satisfied with the number. After creating 50 same monsters in the screen and every aminations is pausing. The CPU usage does not increase very much. After a moment, the aminations begin playing so the engine suddenly increases by like 30-40%.

    The aminations from the spiriter pro is not very compressed and not vector art. The file name is png. The prictures is a bit too big. Can it affect the CPU usage?

    Is there any solution? Have I to reduce the amount of the monsters?

    Thanks!! And sorry for my bad English!

  • located at tutorials/ 1339/ calculating-rectangular-coverage-area

    you could do it like this as well

    Have read now. Very interresting demos and tutorial. Thanks!

  • It's not really important. I am not good at english and there are risks that I was misunderstood. But the main thing is that the problem is solved. There are maybe better solutions. I don't know

  • Loops do not process "too fast" or simultaneously, they have a specific and well-defined order of execution.

    I'm not sure what you're even trying to do with that loop - it looks like it picks an object based on an overlap condition, then it (pointlessly?) moves it in a loop and will end up leaving it in the last position.

    Have you checked my last picture? it's about a family of object(items) which is from the shop for example. When a player buy a item from a seller in the store, the algorithms start and search a empty slot in the player's bag with some items which are busy in their places. The algorithms search by testing a family overlapping another family. If false = the loop stays and results in right coordinations.

    it's worth to mention that these families 1 and 2 have same objects because the first family cannot overlap same family.

    And i don't think that a nested loop with condition works in subevent. I have tried it. No result.

  • Solved! The y-loop have to be first in the event. The X-loop second. It's weird!

  • Hi, i don't think that I should send my whole capx. Maybe only part of the capx but I'm too tired and going to bed now. I will do it tomorrow instead.

    And it works better without else now. I think that I have to create local variables first istead of the loopindex. The X-loopindex disappears after the Y-for starts. Wrong x-loopindex but right y-loopindex.

    Thank you for your quick response!

  • Hi!

    I really want to get this work now. It's a nested loop seeking an empty slot and putting the item in the slot if it's true. It's useful when a player takes some items.

    The problem is that the first loop moves too fast and it results in that the first loop getting maxvalue and the second loop getting minvalue instead.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Bump. The video

    Subscribe to Construct videos now

    solves my problem.

  • Hi,

    I am making a RPG game and trying to create a slot system. I have used tilemap and the code is working well but it's not 100% finished. But something's not quite right - tilemap is always invisible when I put one on the screen, regardless of the tilemap's properties.

    Thanks!

spokplumpen's avatar

spokplumpen

Member since 29 Apr, 2014

None one is following spokplumpen yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies