Constant777's Recent Forum Activity

  • I make the same settings but this is not working for Spritefont. Its working for other Sprites but not working for the Spritefont.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi!

    I have Sprite font pinned to Sprite with parameters for pin:

    Width: scale

    Height: scale

    After pin Sprite font to Sprite I changing Width and Height parameters for Spirte on start of layout.

    But Sprite font does not scaling. (((

    I need help )))

  • Thanks! I will try this. I think it must be working 👍

  • Yes, you understand it correctly )

    But... I hoped that it could be like in "set position"to Sprite2:

    X: Sprite1.X

    Y: Sprite1.Y

    and I thought that I could add some text to it like this:

    X: Sprite1.X(Val=1)

    Y: Sprite1.Y(Val=1)

    or something like that)))

  • Thanks! Good idea!

    "it's just one that is true?" fortunately yes )))

    I thought that it could be done via "set position" by something like: Sprite1.Val=3.X or Sprite1.X(Val=3).

    I thought that there would be an elegant solution in one line :)

  • Hi!

    I have 5 sprites all named the same: Sprite1 but each of it has an instance variable with a different value ("Val"=1,2,3,4,5).

    How do I get the coordinates of Sprite1 by an instance variable value Val=3 to set the position of another sprite (Sprite2)?

    I need help )))

  • Events are executed from top to bottom. So currently, in event #2 you set sound to 0, that's why the next event #3 is also triggered.

    If you want to compare several values, you should add "Else" to each condition:

    > If Sound=0 .....
    
    Else 
    If sound=1 .....
    
    Else 
    If sound=2 .....
    

    you explained it very cool and clear! Thanks! now I understand the logic :)))

  • Instead of "sound=0" condition in event #3 use "Else"

    Thanks!

    But where is the logic?

    What if I need to check if variable=2 or =3,=4...

    Why does this simple expression not work?

    I click the Sprite and if the Variable =1, then what is specified for this event should work.

    If the variable = 2, then another, =3 is still another.

    Is this a program bug?

  • Hi!

    I need to make a mute button. I thought it should be simple. I have a Sprite and when I click on it, the variable changes from 0 to 1 and the frame changes from 0 to 1 based on the value of the variable. When you click on it again Sprite must change its frame and Variable but it does not work. The first click is triggered, the variable and the frame changes, but nothing happens on the second click.

    I need some help :)

    Error: Checking Java JDK and Android SDK versions

    ANDROID_SDK_ROOT=~~/androidSDK (recommended setting)

    ANDROID_HOME=~~/androidSDK (DEPRECATED)

    Using Android SDK: ~~/androidSDK

    :wrapper

    BUILD SUCCESSFUL in 1s

    1 actionable task: 1 executed

    Subproject Path: CordovaLib

    Subproject Path: app

    FAILURE: Build failed with an exception.

    * What went wrong:

    Could not initialize class java.nio.file.FileSystems$DefaultFileSystemHolder

    * Try:

    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

    * Get more help at https:/~~/help.gradle.org

    BUILD FAILED in 999ms

    Command failed with exit code 1: ~~/gradlew cdvBuildDebug -b ~~/build.gradle

    I could export dev APK an hour ago. Still dont know where this error came from

    I HAVE THE SAME APK BUILD ERROR !

  • You need to add one more event:

    On Start of Layout -> Local Storage Check if Item "TEST" exists

    .

    Check out this demo:

    https://howtoconstructdemos.com/easily-save-multiple-values-in-local-storage/

    Thanks a lot!!!!! Its working now)))

  • Hi!

    I need to check the first launch of the APP.

    I think its better to use Local Storage.

    I have global variable CHECK (initial value = 0) and make 2 checks:

    1 - "On item "TEST" exists" set 1 to global variable CHECK.

    2 - "On item "TEST" missing" set 2 to global variable CHECK.

    But I see only 0 in global variable CHECK.

    Please help me :)

Constant777's avatar

Constant777

Member since 5 Apr, 2021

None one is following Constant777 yet!

Trophy Case

  • 3-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

6/44
How to earn trophies