thorntonp72's Recent Forum Activity

  • Hi,

    I have written a top down platform shoot-em up game which I thought was working really well.

    The window size was reduce from 1280 x 720 to 640x360 to see if this helps

    The layout size is now 1024 x 6144 with a tile background and not individually placed sprites.

    All loadable objects are destroyed on layout.

    I have about 360 objects in the layout.

    I have around 0-130 particles going off from time to time, but only on certain events like a tank exploding.

    Image memory use is about 13.5mb

    So on my windows machine I get 60FPS (steady, with no drop) which I would expect based on my GPU.

    When I run the game using the LAN via the construct 2 web service on my mobile device I get around 30 to 35 FPS (steady) which is great and would be happy with even 25FPS.

    but once I export this using Cordova, then build the apk using the Intel XDK tool, then install on my device I am only getting between 5 and 10 FPS.

    If I cut any more out of the game (such as objects) I might as well have stick figures running around the page.

    I am testing this on a samsung Galaxy TAB 3 device which is not the greatest but I think a good device to base a minimal test on for the game, but not sure why it so slow. I have also tested this on a HTC M8 which is not bad and gets around 15-18 FPS, but still not great.

    I am not pushing the game to any real limits that I believe should be restricting this, so I am now at a loss to see why this is running so badly.

    I have read the performance improvement pages and have initiated all of them with no gain at all.

    Does anyone have any ideas as what to look for or why this is about 10% of the speed after testing on my pc and 60% slower after the web connection test?

    Thank you,

    Paul

  • First issue was easy resolved. I just destroyed the images on start-up. This prevented them from doing anything and did not impact the creation or spawning of the sprites later in the game.

  • Just a quick update in-case someone else has this issue. I seemed to have got around the problem by adding the 8 Direction behaviour to the enemy sprites and disabling the default control. The enemy now just crash into each other and eventually bump around toward the player to get out of their position.

    Still working on the first issue.

  • [attachment=0:317znvp3]lineofsightturretenemycollisionissue1.capx[/attachment:317znvp3]Hi,

    I have been slowly creating a top down shoot em up game which is going well, but I seem to have 2 issues with enemies.

    The first issue, is that in order for me to create a new enemy object somewhere I need to also have the object somewhere in the layout screen. Now this is okay for static objects, but when my enemies have bullet behaviour and LOS enabled the off screen sprites come onto the screen which I do not know how to stop them from doing so as they do not need to be there as the actual enemy is comprised of 2 sprites, so I cannot just stick them on the screen (which I have tried) as the turret always seems to get left behind, while the tank moves away.

    The second issue, is that all of the new objects I create on the screen always collide/overun with each other, basically running over each other, so when I have 3 created tanks and they are coming after the player, they will eventually all be on top of each other, which looks bad. I know the point is to kill them off, but sometimes this does not happen. They also seem to just go through all other solid objects on the screen (which have solid enabled) like trees, buildings etc.

    I have tried several things for both of these issues, but cannot seem to fine the resolution.

    When the enemy collide with the player, they just push him around, which is great and expected behaviur, but I cannot seem to get the enemy to do the same with each other and not sure why. I have tried playing with solids and other behaviours but nothing seems to work.

    I have supplied a link and attachment to a very basic capx file which shows both issues that I am having and was wondering if someone would know what the problem is with them.

    Please.

    https://www.dropbox.com/s/5sc9sna87jbhr ... .capx?dl=0

    Thank you.

  • Try Construct 3

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

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

    Does this mean that we can no longer use the webstorage local feature to save game data and setting etc?

    Thanks

  • Okay figured it out. I just set Custom to obstacles in the LOS Behaviour. Hey, it might help someone anyway...

  • Hi,

    I have created a few sprites using containers where I have a base and a turret on top. Now this works great and the turret has LOS enabled etc and follows the player around as per settings given. I have another image (A Tower image which sits on the ground layer) and when I place the turret on top it works fine and it looks great. However when I change the tower image which is below the turret, the turret stops moving.

    I think I know what the problem is. So the turret is now inside the tower object which has the solid setting on so the turret can no longer see the player as it's stuck in a solid state, but I do not want to disable the solid state on the tower image else the play will just go straight through. I have tested this by placing the turret on the corner of the tower, just outside the edge and it fires, bring it just in and it stops.

    Can I have my cake and eat it too? Is it possible to have the turret sitting in the middle of a solid object and still work?

    Losing Hair......

    Thank you for any help.... I have included the 3 scenarios below as the example. I would provide capx but it's about 33mb at the moment.

    solid_enabled_on_tower_turret_outside_tower_working_okay

    [attachment=0:1qiwdfjt][/attachment:1qiwdfjt]

    solid_disabled_on_tower_turret_on_tower_and_firing_player_walking_through_walls

    [attachment=1:1qiwdfjt][/attachment:1qiwdfjt]

    solid_enabled_on_tower_turret_dead_player_cannot_walkthrough_walls

    [attachment=2:1qiwdfjt][/attachment:1qiwdfjt]

  • Hi Korbaach,

    Wow and thank you very much. That works a treat. You are awesome!

    Cheers,

  • Hi,

    Before you say it, I have read the doco and also the tut's on this in regards to setting the HUD to the top layer and setting Parallax to 0,0 and also the Parallax in editor option to yes and no.

    When I do this, I have no idea if it is actually working as the objects I put onto the HUD layer just disappear off the screen. To where I do not know.

    If I change the parallax options back then the images re-appear but then they scroll off the screen, so not sure what is going on. I have supplied a capx if anyone is able to help please and point out what I am doing wrong here.

    https://www.dropbox.com/s/tsv89y99gipl2 ... .capx?dl=0

    At the bottom left hand corner you will see a thumb controller to control the little guy running around the screen.

    If I set Parallax to 100,100 and Parallax in editor to Yes, the controller appears but then scrolls around / off the page. If I set Parallax to 0,0 and Parallax in editor to yes or no, then when I start the game the controller goes away.

    Thank you.

  • Hi Volkiller. Yes it was that for sure. Thanks for your reply. I have been reading a lot, but it's a lot to take in all at once.

  • okay, I think I found the answer by accident. If I change my layout size bigger than my window size, I can now scroll up and down and zoom in. Probably ended up being a dumb question, but maybe it will help someone else

  • Hi,

    I seem to have an issue where I am not able to scroll up and down in the layout screen unless I have zoomed into the window area. I have a top down shooter I am working on and would like to be able to scroll further up the screen and layout my scenery etc in certain spots. When I first got C2 I thought I was able to do this, but maybe not, however since going from 186 to 190 my scrolling seems even more limited.

    Yesterday, I was able to scroll up and the image attached shows a basic layout of my level but what you cannot see is a whole bunch of building further up the screen. I cannot even see these anymore.

    Also, I am not able to zoom in to any of the upper level layout so I can accurately place my images where I want them, so I have to sort of stick a tree or rock or an enemy on the screen, run the code and see what happens. Which is sort of okay for big items, but when I have small items, such as a barrel, it is really difficult.

    Am I missing something somewhere, or is this a setting I have missed?

    Thank you,

    Paul[attachment=0:t53fh0s9][/attachment:t53fh0s9]

thorntonp72's avatar

thorntonp72

Member since 12 Nov, 2014

None one is following thorntonp72 yet!

Trophy Case

  • 10-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

12/44
How to earn trophies