imhotep22's Forum Posts

  • Don't use special effects to change the color, that's the worst thing you can do performance wise. Upload the tilemap 6 times each with different color.

  • you don't fetch and update date with php, use Json with ajax call, or MySQL date base.

  • You can use a loop, or the repeat system expression, and every repeat change the x,y position of the sprite.

  • You can check in the debug more to see what events take the most CPU usage. If it gets over +90% its an processing issue rather then graphical rendering, you probably have to many collision checks per second, to many bullets flying on the screen, or to many enemies calculating path to the player etc etc.

  • Its seams you are new to construct 2, so you can start by reading the manual, and checking some tutorials for top down games

    https://www.scirra.com/manual/1/construct-2

    https://www.scirra.com/tutorials/37/beg ... onstruct-2

  • There is a problem on certain devices if the size of the image is larger then 2000x1000 pixel's, try reducing the size and test again.

  • You posted the topic on the wrong sub forum, this side of the forum is for construct 2 only.

    For construct 3 post your topic here

  • Use a random function on start to generate the Y,X axis and save the values in a variable, after is generated call a function to spawn those sprites, for the y axis just put the y value, and for the x one increment it by 10 after each spawn.

  • Maybe change the sprite? What kind of images are you using in a first place, that can be loaded in another browsers, what is the size of the image?

  • You can keep the current position in an array, and add a sub event that checks if the current position exits in the array, if it does recall the spawn position again to chouse another positon.

  • Well I cant make the events without the sprite animation, if you can send me the player and all of its animation I can make an example capx file.

  • First you need to have the animation for the sprite, after that you will need a separate sprite pinned to an image point near the weapon for collision detection. Then you add an keyboard object to your project and add an event on key space pressed, and as action play the animation, make a wait system expression( 2 seconds or something like that), and reset the animation back to default.

    As a sub event add the collision detection, use the sprite pinned to the image point and check if its touching the enemy, if it does subtract from his heath.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Construct 2 memory management is great and pretty efficient so its not that for sure, it has to do something on how you arranged your events. You probably don't destroy the objects that leave the screen so after a while they build up and its making the game to lag.

  • You can just copy paste the object in as many layouts as you want, it has no effect on performance. You can group your objects in subfolders and families.

    Making more smaller layouts then one huge one is always a better choice performance wise, so you did the right choice.

  • You can add global variable movement and increment it by 1 on touch/click, when it gets to 2. Then add a second variable called stamina and set it to 100, when movement is at 2 and lets says say every 0.1 second, decrement the stamina by 1, when it gets to 0, stop the movement. You will need 3 events to implement it.