Donald Cela's Forum Posts

  • Don't think you need a family for that necessarily. Add a condition to test if layer is visible. Can use object.layerName if layer may vary.

    Interesting , simple ... didn't think about it ! I will keep this in mind , Thanks !!

  • So if i create a layer with some sprites with touch functionality and i set it invisible during gameplay . Can the sprites be affected if i touch them while the layer they are in is invisible ?

    If touching those sprites does works , is it possible to deactivate the touch of all the layer ?

  • Hi , i paid for the plugins from here http://cranberrygame.github.io/ . Where and when do i get the files ?

    Thank you !!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • DId a test ads show up during test mode?

    I just tested with my game. Ads does show up even if you have't export your game to the playstore.

    You mean in test mode or not ?

    Can ads be preloaded if admob ad unit is not linked to your game in the playstore ?

  • You need to use an array. It will do exactly what you want.

    yep ! It did the job !

    Thanks

  • If your game is top down and the enemy object has "pathfinding" behavior

    1- compare player distance to enemy distance ... Add event - System - compare two values - first value is dhe minimal distance the player can move close to the enemy without being detected ( you decide that) is smaller "<" than the second value , which is (player.x,player.y,enemy.x,enemy.y)

    2- on the same event ad another condition - if player is not sneaking ... i would use a local variable for the player , sneakint=1 or sneaking=0

    If player is not sneaking , so sneaking=0 than this second condition is true .

    3- add action - enemy - find path to (player.x,player.y)

    4 - new event - enemy - if path found - fallow path ...

    In case your game is a sidescroller with gravity , i think you will find a way for the enemy to go to the player

  • 1-I have a local variable called "local" which i can set to a number x from 1 to 10

    2-also i have 10 global variables named global1 , global2 ... global10

    3-now i need to set a Text to one of the 10 global variables based on the "local" x-number , so if "local" is 3 then i want to set text to global3 . But i don't want to create a specific event (((((" if local=x , set Text to : globalx)))) for each "local" x-number .

    So is there an expression to set text to global(local) ?

    Hopefully i made sense :p

  • thanks ! i really appreciate your opinion .

  • The Unscrupulous Mess

  • Just uploaded on the Arcade a short episode in alpha stage ( The Unscrupulous Mes s) and i would really appreciate some feedback on the base gameplay mechanics , the grappling hook and teleport granade . (They seem to glitch once in a while) .

    Also what do you guys think about the art style during the opening cutscene , because i was thinking of replicating the same style during gameplay ...

  • found a shortcut for my case ... really appreciate your response BackendFreak

  • Problem Description

    I have a sprite with bullet behaviour and 2 animations , both at the same speed 10fps , 5 frames each .

    This sprite spawns randomly and every time it does , randomly chooses one of the 2 animations to play ( to give the impression of different sprites) .

    In both animations loop is set to yes , repeat to 0 , repeat count 0 and ping pong to yes .

    When i set an event that changes bullet speed and animation speed to match the new bullet speed ( bullet speed by 10% and animation speed 11fps ) ,

    both animations seem to play only few frames (3rd and 4rth ) to be more precise .

    Attach a Capx

    https://www.dropbox.com/home?preview=test.capx

    Description of Capx

    recreated the situation with only one animation

    Steps to Reproduce Bug

      as in the event sheet Observed Result only 2 frames show Expected Result you know... Affected Browsers
      • Chrome: (YES) Operating System and Service Pack windows7sp3 Construct 2 Version ID Latest Version Any idea if it is a bug of the new update or i made something wrong . The case is easy to replicate . I hope there is something i could do ... would really appreciate some help <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile"> . Thanks for reading !!
  • I want to call an action based on a condition ...

    The condition is based on a random number that i also need to call .

    This may have an easy solution but how can i achieve the second part , ( creating a condition based on a random number )

    Thank you ! Hopefully ill get an answer