dop2000's Forum Posts

  • I agree, expressions like Sprite.AnimationsCount and Sprite.AnimationName(index) would be quite useful.

  • You can add an event which outputs group status (enabled/disabled) to browser console. Either when a key is pressed, or every X seconds.

  • The condition on the left (CarControl ID=0) will pick the instance of CarControl object with ID=0. And then all actions in this event will only be applied to that picked instance.

    Picking is one of the most important principles of programming in Construct. I suggest you start by studying a few official templates and tutorials.

  • Car Pick by Unique ID =1
    Overlay1 Set position to Car
    Overlay1 Pin to Car
    
    Car Pick by Unique ID =2
    Overlay2 Set position to Car
    Overlay2 Pin to Car
    
    ...
    
    or
    Car Compare Variable CarID =1
    Overlay1 Set position to Car
    Overlay1 Pin to Car
    

    It may be easier to set up everything manually in the layout editor. You can select both sprites (car and overlay), right click the car and create hierarchy connection between them. It works better than pin.

  • Double-clicking a point adds a new one next to it.

  • It would be easier if each layout has its own event sheet. Make sure it's assigned to layout in properties.

    If you can't figure it out, please post screenshots of your code, or share your project file.

  • Not sure I understand the problem. You can set which layout should start first in project properties. When the first intro is over, in the event sheet for that layout use "System Go To Intro2" action to go to the second layout. And so on.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • I usually add extra commas at start and end of the string. So it looks like this:

    ,1,2,3,4,5,6,7,10,11,12,21,101,102,202,1001,

    This way I can replace ",1," with "," and it will not ruin other numbers.

  • I managed to build an app that works on TV and displays its icon in the Android TV Launcher. Google Play Store should allow this app to be installed on TVs, although I haven't tried it.

    Decided to leave the instructions here in case anyone else needs it. Not sure if my method is 100% correct, but hey, it works!

    1.

    Export your project for Android, choose "Cordova project" build type.

    2.

    Add this tag to the config.xml file:

    <preference name="AndroidXEnabled" value="true" />

    3.

    In Cordova CLI execute "cordova prepare" command.

    4.

    Make the following changes to \platforms\android\app\src\main\AndroidManifest.xml

    4.1.

    Add android:banner attribute to <application>:

    <application android:banner="@drawable/banner" ... >

    4.2.

    Replace android:theme attribute in <activity> tag:

    <activity .... android:theme="@style/Theme.Leanback" ... >

    4.3.

    Add a new intent-filter to the activity:

    <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LEANBACK_LAUNCHER" /> </intent-filter>

    4.4.

    Add these two keys to the root <manifest> tag:

    <uses-feature android:name="android.software.leanback" android:required="false" /> <uses-feature android:name="android.hardware.touchscreen" android:required="false" />

    Here is what the result should look like:

    5.

    Edit \platforms\android\app\build.gradle file and add this line into the root dependencies section (around line 350)

    implementation("androidx.leanback:leanback:1.2.0-alpha01")

    '1.2.0-alpha01' is the current version as of August 2021, you can lookup the latest version here.

    6.

    Create banner.png image (320x180 px) and copy it to this folder:

    \platforms\android\app\src\main\res\drawable-xhdpi

    and possibly to

    \platforms\android\app\src\main\res\drawable-land-xhdpi

    7.

    Continue building the app with Cordova CLI:

    cordova build android ...

    Please refer to the official guide for more info, and let me know if you notice any mistake in my post.

  • You have Jumpthru behavior on the red block. It works like solid, but you can't use solid tags for it. You need to remove this behavior.

  • It works for me.

    Must be some mistake in your project, but I can't download it. Make sure you allow access to everyone, to test try opening it in a private browser tab.

  • You need to use AJAX object -

    AJAX Request URL FileChooser.FileURLAt(0)
    System Wait for previous action to complete
    Set variable s to AJAX.LastData
    

    If you are making a game for desktop and exporting with NWJS, then you can use NWJS.ReadFile(path) expression