Mogador's Forum Posts

  • Perfect, that's the solution I was looking for

    Thank you !

  • Hello,

    I have put my sprites in an "Assets" layout and on a particular layer and I want the sprites of this layer to appear, in the same position, on another layout.

    How can I do that ? I wish I could do that without creating a "Set position" action for every of these sprites. I would like to be able to say :

    1- Take all the sprites on the layer 1 of the "Assets" layout

    2- Display all of them, at the same position, in my "Level 1" layout.

    Thank you for your help :)

  • Thank you !

  • Hello,

    In my strategy game I have different maps using the same assets (sprites, texts, buttons).

    Instead of cloning theses assets on every map. Is there a solution where I could put all my sprites on 1 single layout. And then call theses sprites on the different layouts where they are needed ?

    Sorry if this question is very basic, but I did not find the answer :)

    Thank you for your help

  • It works much better now and it is not freezing anymore, thank you very much :)

  • Thank you !

    I will try these modifications asap :)

  • Hi,

    I think I have a small optimization issue. I work on a very simple prototype: it is a town where zombies are hunting down civilians. I have a quite simple pathfinding and pursuit system but it does not work as well as it should.

    I have 2 problems :

    1- From 200 zombies on the map, the FPS is falling dramatically, first to 30-40 FPS, and the below 30 FPS. Can anybody tell me what is the reason ? (obviously it comes from the ZombieIA sheet)

    2- The game will always freeze before 2 minutes et I can't see why (debug seem to be ok, although I am not an expert).

    Can anybody give me some hints about what is wrong in my script ?

    The capx is here : dropbox.com/s/v8jtuj0aozdztt2/ProjectZombie_Debug.capx

    (if plugin is required, I use Rex's plugins : c2rexplugins.weebly.com/)

    And you just have to launch TacticalMap and click on the Start Game button on the left.

    Thank you ! I don't know much about optimization, but eager to learn ;)

  • mmh I am not sure to understand : you mean that I should not use the turret behavior ?

    I should only use the LoS and, when Policeman sees a Zombie, make "Rotate toward angle" to shoot at the Zombie ?

  • Hello,

    On this project : https://www.dropbox.com/s/8r35zy2zzfiu3 ... .capx?dl=0

    I have Policemen shooting at zombies using the Turret behavior. But as you can see, while aiming they are sometimes shaking as parkisonians or they fail to align and to shoot on Zombies very closed to them. The turret behavior seems to be quite simple, I don't understand what I did wrong.

    Do you have any idea to help my policemen ?

    Thanks for you help <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

  • Indeed, there is a lot from you here

    Thanks again

    I tried to put a "Every 1 second" action before event 101. It makes far less collision checks /second, but the FPS still falls when there are more than 300 zombies

  • Hello,

    I have a system, made with the help of some of you here, where zombies are spawing and chasing human beings. The zombies use the pathfind system.

    The problem is that when too many zombies are created, the FPS is dropping dramatically. Do you have an idea how to avoid that ?

    The Capx is here : https://www.dropbox.com/s/v8a53q5ckij48 ... .capx?dl=0

    Thanks !

    Mogador

    PS : once the game is launched, you can use arrows to move and mouse middle button to zoom out

  • Ok I have found the problem

    Thanks again for your help !

  • Thanks a lot,

    I have put your example in the complete project.

    One problem remains : when dezooming, I have MarkerNOT (landing zone being black when it shouldn't) while my cursor is not overlapping any object, do you see why ?https://www.dropbox.com/s/3y94n3d0kz86kma/PIB_ZoomProblem_2.capx?dl=0

    Mogador

  • Thank you for your help <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    I am not sure to fully understand. Does it have to do with absolute position ? As you proposed 99Instances2Go I am interested by an example of how to deal with it.

    Here is a capx : https://www.dropbox.com/s/vz1dpl8gq8427 ... .capx?dl=0

    • When you click on "Platoon" button, you have a landing zone icon on your cursor. I would want this Landing Zone to be on the correct position even if I am changing the zoom scale (the layout starts at zoom = 1, use the mouse middle button to change zoom)
    • After validation the Landing Zone, an helicopter will arrive and drop an infantry platoon, when I move this platoon (by clicking on it, and then left click on its destination), I want it to move to the point I have selected, even If I am not on the initial (1) zoom scale.

    I would have a better understanding with an example

    Thanks again

    Mogador

  • Try Construct 3

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

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

    I am making a top view small RTS when I give orders to "police units" through the Pathfinding or the MoveTo behavior : https://www.dropbox.com/s/12uj3szkq95qn ... t.png?dl=0

    But I also have different zoom levels ont he map, managed as you can see on this screen : https://www.dropbox.com/s/pjx0anxtfqums ... m.png?dl=0

    When I give orders at the default zoom level (which is 1, the closest level), it works fine.

    But when I give orders while being on other zoom levels, the units goes to a wrong position. The furthest I am from zoom level 1, the greater the position is wrong.

    What is the solution to give the same position although being at different zoom levels ?

    Thanks,

    Mogador