savvito123's Forum Posts

  • So let say i have a text object and everytick set the text to variable.

    Every tick ----> set text to variable

    or

    Text is on layer0 -----> set text to variable?

    or

    Text is on screen -----> set text to variable?

    Its just an example and it does not matter if i can use layer0 or screen to do something else.

  • Add this to xml maybe fix the problem

    <preference name="android-minSdkVersion" value="20"/>

  • Did you build the apk with Cocoon.io?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Try to publish it and then test it..

  • Thank you for your help, I study these different ideas, I realized that by disabling some groups animation problems disappeared. I also have the opposite problem when I press a key and I stay pressed it plays me a continuous animation (while it is not loop), can we simulate a release of key after of a second for example ?

    What type of key you use?

    Keyboard , Mouse or Touch?

  • Here is 2 options.

    drive.google.com/open

  • I answer it already but the answer need approve by a moderator.

  • Btw your variable never turn to 1 because you use overlap, when overlap the stopwater adding 1 everytick to your variable.

  • Ok thank you!

  • What is faster?

    On button click spawn a bullet

    Or on button click run function to spawn a bullet?

  • A way that coming to my mind right now..

    I dont know if there is an easiest way..

    drive.google.com/open

  • > You can set a variable alive=true at your player, or if you have already a health variable to your player then you have to use it to all the buttons.

    > So, lets say you have a fire_button, you can add another condition if players health its equal or greaten that 1 then shoot. Do it with all the buttons.

    I do not find it, I need that when the player loses, the trigger button is deactivated, because when pressing A, the trigger animation is activated, interrupting the death animation.

    It should work, upload a capx.

  • You have to make more logic s.

    If you have 2 animations "walking""jumping"

    You need also 3 variable walk = false jump = false walk_jump = false.

    If left button pressed set walk to true , if walk = true and jump = false set animation "walking".

    if jump button pressed set jump to true , if jump = true and walk = false set animation "jumping".

    If left button and jump button are both pressed set walk_jump to true , set jump to false, set walk to false set animation to "jumping".

    On landed set walk_jump to false.

    But you have to play with that if you want to add and fire or run animations.

  • No picture..

    But , you can compare if both of them they are overlapping the same line...

  • Create a button "Box_btn".

    Create a variable "Box_Var" and set it to 0.

    Add a sprite called "Box" at the layout.

    On mouse click "Box_btn" set "Box_Var" to 1.

    On any mouse click and "Box_Var" = 1 create object "Box" at Mouse.X -- Mouse.Y

    Set "Box_Var" to 0.