lionz's Forum Posts

  • Please first share an example of what is an RTS interactive UI

  • email Construct team with the file and info, it will be difficult for a user to help with that.

  • The event runs every tick, you can add a trigger once to the condition, or instead use 'alien on collision with spaceship' which will trigger once.

  • I can't see the edits. If you mean second level we didn't really touch that.

  • I'll just mention specifically it's player.x+random(a,b) where a is the closest the enemy is allowed to be and b is the furthest away.

  • Yeah I am not too great at the maths so my approach would be set a local variable to choose(1,2) then if 1 its on the left of the player so player.x-random(value) and if 2 its on the right of the player so player.x+random(value). For Y you do the same and it kind of randomises it I suppose.

  • What are you using at the moment, a random x,y ? You could create the objects at player position + value so they are always away from the player.

  • Hmm it looks like the character object does need to be in the layout for it to work with the 3D object. You can destroy the character object on start of layout to free up memory but I don't think it would stop the freeze.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Try the option of selecting the layout from the drop down instead of by name and see if it works

  • Well I hate to post the same thing again but use Pick nth instance

  • There is no doubt it is why the game freezes as described above, it is preloading around 600-900mb of assets on transition. Notice how it doesn't freeze when you transition to the level select screen? If it doesn't have to load these characters then it doesn't freeze at least for me on PC because the memory usage is more reasonable.

  • If you mean pick the two that are overlapping there is something called 'Pick nth instance' under System, where 0 and 1 are the two instances overlapping.

  • What are you showing us? Please explain the problem. If it's a bug of invisible character that's secondary to the performance issues at the moment, you need to chop down those character animations. You should delete the characters from that level and an object bank isn't totally necessary.

  • Ok the memory usage is almost entirely caused by these characters you've got underneath the level that are not really part of the level. Delete them. You've used the level as a kind of object bank but this should be in a different layout. They will need to be optimised in general though as one is spawned for the player.

    Also they appear in the character select screen, consider using a different object for this - objects with one frame of the character. The tutorial is also approaching 1gb because of all the characters, they just need to be optimised I think each char adds about 200mb which is a lot when you consider that memory usage should be around 100mb max total for all graphics in the layout. This could work on mobile if you reduce those characters down.

  • I had a look and the freezing is from memory usage, it jumps from 5mb in level select to up to 900mb in the level so it's loading the assets.

    Also sorry to say but these look like mobile controls and this is never going to work on a mobile device, did you test it yet? The memory usage is so high it even freezes on a PC. Mobile should be around 100mb or less ideally and yours creeps up to 600-900mb on each level.