Bl4ckSh33p's Recent Forum Activity

  • Its not there for me. AsJson, Count, IID etc. but no object name. I use the latest stable C3.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks, just tried it but I cant find the ObjectTypeName="x". Its not in the list and brings up an error.

  • Hi! Is it possible to use a string in a variable to pick an object?

    I have 2 Dictionary objects and want to select them by name, but the name is stored in a variable.

    Is this possible? Or do I have to write the code for every object?

    As workaround I just added a new "ID" instance variable to compare but im curious if it works without it.

    Or can you use the content of another objects instance variable to select the variable of another object?

    Like this: Dictionary.(OtherObject.InstanceVar)?

    So I dont have to write several lines for every possible entry.

    Like this:

    + Hotspot: SkillLink ≠ ""

    ----+ System: Pick Breadbuilder by evaluating Breadbuilder.ID=SelectedSkillPlanner

    --------+ Hotspot: SkillLink = "Trickster"

    ---------> Browser: Go to Breadbuilder.Trickster in a new window ("NewWindow")

    --------+ Hotspot: SkillLink = "Technomancer"

    ---------> Browser: Go to Breadbuilder.Technomancer in a new window ("NewWindow")

    --------+ Hotspot: SkillLink = "Pyromancer"

    ---------> Browser: Go to Breadbuilder.Pyromancer in a new window ("NewWindow")

    --------+ Hotspot: SkillLink = "Devastator"

    ---------> Browser: Go to Breadbuilder.Devastator in a new window ("NewWindow")

    ----+ System: Pick Outridersbuilder by evaluating Outridersbuilder.ID=SelectedSkillPlanner

    --------+ Hotspot: SkillLink = "Trickster"

    ---------> Browser: Go to Outridersbuilder.Trickster in a new window ("NewWindow")

    --------+ Hotspot: SkillLink = "Technomancer"

    ---------> Browser: Go to Outridersbuilder.Technomancer in a new window ("NewWindow")

    --------+ Hotspot: SkillLink = "Pyromancer"

    ---------> Browser: Go to Outridersbuilder.Pyromancer in a new window ("NewWindow")

    --------+ Hotspot: SkillLink = "Devastator"

    ---------> Browser: Go to Outridersbuilder.Devastator in a new window ("NewWindow")

  • Seems I found a fix for it.

    Timezone offset was -120 (minutes) so I added this:

    -> System: Set ReleaseDate to Date.Get(2021, 3, 1, 0, 0, 0, 0)+(Date.TimezoneOffset×60000)

  • Hi. I added a timestamp from a date to a variable (April 1 00:00) but the countdown (using difference between end time and now) was 1 hour off and since today it's 2 hours. It's counting to 02:00. But why when I set it to 00:00 midnight?

    PS. I'm in Germany (gmt+1) and the timezone offset showed -60 minutes. But negative would be gmt-1?

  • Hi. Often links I open in an iframe (even with target set for a new window) open "in" my app instead of the default browser or installed app. Is there a way to force opening a new window when using a link in an iframe?

    Tagged:

  • Hi! Later this year google requires you to use the app bundle but how do you use it? Are there any easy tutorials how to make one?

    Or is it possible to make it easier so you dont have to use command line tools etc?

    Like adding the required info to a dialog in Construct when exporting for android (like it has now for building a signed .apk).

    source:

    android-developers.googleblog.com/2020/11/new-android-app-bundle-and-target-api.html

  • Thank you very much for the detailed answers.

    I wanted to use it to display a message on an iframe that you need an internet connection and it set visibility to the loading animation to invisible. Right now if you are offline iframe shows an error with black text on black background and the loafing anim is showing forever.

    And to change a svg icon if online/offline which displays server status.

    Some actions / expressions for iframe would be handy. Like a trigger when loading is complete, or a way to get what URL or code is shown in the iframe. Ashley

    Or a loading progress to show a timeout message after x sec.

  • Hi! Is there a list of not supported features for Android exports? I know about Browser > Downloads not working. And I tried Went Online/Offline conditions today and it seems they are not working on android exports.

    The condition "is Online" seems to work but the Went Online/Offline triggers do not seem to do anything. I tried it a few times and got nothing. (enabled airplane mode to go online/offline a few times)

    /Edit: Just tried it with a short Timer and on Timer > Is Online > X does not work either.

    It works in preview on PC but the exported version does not seem to update the online status.

    But "Is Online" seems to work once at launch cause actions are executed. Is online status not updated on Android exports?

  • And then set color with this huge value I get? Need to try it when I'm back.

    But for now I found a workaround without storing the colir value. Just using the Ajax.lastdata to set it again.

  • Hi! I have a tiled BG and added a Timer Behavior and set it to Global so the timer does not reset on every new layout. But now the tiled BG object is resized and moved when I use the code from the touch pan/zoom example but the layer it's on should not be affected by it. Is this a bug?

    And set Z order to bottom does not seem to work either. I set it on start of layout but sometimes its above the other objects.

    As soon as I remove the Global check it works as expected.

  • Hi! It seems there is no way to get the color value of an object so to restore a color after switching layouts etc. I thought it could work with a variable. When you change the color just set it to the variable so you can later use it again and remember which one it had.

    Can you store a color value like rgbEx(x,x,x) in a number or string and use it to apply the color again?

    When I tried it I just got a huge negative number. But that cant be used to apply the color again?

    Tagged:

Bl4ckSh33p's avatar

Bl4ckSh33p

Early Adopter

Member since 20 Jul, 2013

Twitter
Bl4ckSh33p has 5 followers

Connect with Bl4ckSh33p

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • x3
    Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • x7
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x2
    Lightning Draw First person to up-vote a new Construct 3 release
  • x4
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

21/44
How to earn trophies