Fidasx's Forum Posts

  • glad to help

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • if you mean you get an error on preview that the instance of the sprite is missing from the layout then thats the problem

    make sure you have the sprite or text or anything you spawn inside or outside the layout first

  • you could use a sprite with the items on it in the same size of your game screen or smaller and lerp its position to the game screen by clicking a button or something like that

  • make the paper sprite with 2 animation frames

  • this normal roracle since it triggers a collision even if its one pixel

    t

    you can probably workaround this by checking if the player is colliding then set the Y of the player to that objects y+objects pixels height

    since this will act like a teleport it wont work very well with bigger object height than few pixels

  • the problem is that you need to read the link i gave you if you understand this you will have no problem

    lets say we have 5 cars all the same copies of one car but each one with different stats or look (faster slower color size etc...)

    and we want them to behave different to achieve that you need some instance variables for each car

    speed

    color

    size

    then you can set each car to behave or look different depending on the values of those variables

    so if a turret is level 2 you have to check for a condition so the bullet coming from that turret has longer range or bigger dmg

    example

    compare turret instance variable "level"

    turret "level"=1 bullet set bullet instance variable "dmg" to 5

    turret "level"=1 turret set turret instance variable "range" to 5

    turret "level"=2 turret set turret instance variable "range" to 10

    turret "level"=2 bullet set bullet instance variable "dmg" to 10

    this is a very simple example the way you setup events its all up to you i hope this helps you

  • here a simple example hope it helps

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

    you need beta 196.2 to open it

  • you have to use instance variables for each turret so that game knows which one is higher level and then pick that

    then the new bullet spawned will have longer range or dmg but that also depends on your design

    https://www.scirra.com/manual/73/instance-variables

  • its 60 fps on my side but i have a good pc

    i think the most optimized way is to create an animation than spawning 600 objects and moving them with bullet + webgl effects

  • for the X system create object at random(layoutWidth)

    for the Y it depends how far from top you want to spawn just play with numbers

  • stop animation is used as a action when you need to check if an existing animation runs so you stop it (at least most of the times is used like that)

    like

    Animation is playing "running" - action> stop animation

    player is not moving

    it stops any currently playing animation but it does not set a specific frame when it stops

  • you dont really need seperate layout for this as far as i understand you want to spawn a dialog sprite

    i hope this is what you want very simple example

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

  • Better logic

  • np thanx yann for his amazing tuts

  • as far as i know you cant save objects-sprites inside arrays if you want to make it with less events and cleaner you need to use families and functions

    an array can help you save strings or numbers (variables text) and then use them for things like enemy player or tower levelup

    if you want to pick on families you have to pick by UID

    read here https://www.scirra.com/tutorials/556/un ... o-families