imhotep22's Forum Posts

  • Yeah its pretty easy, you will just need to add an extra action at the death event.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Its good game, why don't you add the Scirra arcade plugin so we can track our high scores on the website.

  • You cant do that. You will have to show the tooltip another way on touch press, or add a small ? near the object and player presses that the tooltip appears.

  • Thank you, now I know how its done.

  • Can anyone share a general procedure on how you export your games from construct 2 to the Android market? Like what tool I need to export the game, and where I need to post the files of the game etc.

    I want to export my game from PC to mobile, so before starting I want to hear other people opinions and practices, so I know where to start.

  • Add another event on start of layout, which will pin the gun to the player location.

  • You can divide it by 10 and then save it as integer to get the first digit(10). Then you can divide it again by 10 using modulo division to get the second digit(6). If the number is bigger then you can increase the division to get the other digits to 100, 1000, 10000 etc.

  • You can add the Persist behavior to the enemies.

  • Add the storage plugin to your game( its already in c2 you don't have to download anything).

    Then when the players presses the button to save the game add 2 extra actions, one toggle the Boolean from false to true, or if its an number toggle it from 0 to 1, then as another action select the local storage -> set item, add a key and the variable you wish to save.

    When all of this is done, on layout load check storage item for item(key) exits if the key exits then move the load button where ever you want it.

    Here how I did it on my game Confusion which you can find on the arcade

    https://s18.postimg.org/leeze1cft/Screenshot_8.jpg

  • You can keep a Boolean variable to see if there is a load state or not, but then again the value of the Boolean has to be kept in local storage because how else you will know if there is a load state or not( if you close the game Boolean resets to default value).

  • If you are using local storage to keep the saves, on start on layout you can add a sub event that checks if a key exist in storage, if it does not reposition the load button somewhere out of the canvas like -200,-200.

  • You can group the enemies with an instance variable same goes for players. Lets say you have 3 players and 15 enemies, you can set the first player and 5 enemies with an instance variable one, and in the event sheet where you call the event add one more condition player id == 0 && enemies id == 1, and for the second group add another event with those ID's set to 1.

  • Draw calls: how long it took the CPU to issue rendering calls, not including the time for the GPU to complete them. In some cases, rendering calls can be quite CPU intensive, especially when very large numbers of objects are on-screen. Some browsers also forward all draw calls to another thread to be processed in parallel, in which case the Draw calls measurement will likely be an underestimate.

    Engine: the remaining time spent in the Construct 2 engine, which is the overall estimated CPU with the events, physics and draw calls times subtracted away. This includes processing behaviors and other engine housekeeping.

  • https://s12.postimg.org/m6wrzcxml/Screenshot_8.jpg

    I used that in one my older games, worked really good, and if like 2 enemies are overlapping the damage is doubled.

  • Well if you keep the score in a global variable, you can add a text into the new layout and set the text to the global variable in the event system, nametext -> set text -> global variable. You will need to make sure to save the text first then reset the variable to 0 so player can start again, and if you like to keep the text forever even if the players closes the game you will have to save it into local storage or in an array as Json.