Rable's Recent Forum Activity

  • Ok, got it. So basically add "for each" everywhere.

  • Thanks blackhornet , didn't check the manual for that, sorry.

    However,there is something I don't understand with the said workaround by adding the "for each" condition after the trigger.

    I mean... On timer is *already* triggered once per instance (as stated the line just above), right?

    So adding a for each condition will do nothing, unless you specify more conditions below. Correct?

    Sorry I'm sick at the moment so maybe I have a hard time understanding simple concepts... ^^'

  • tarek2

    Very interesting! Thanks again! Do I need to use "for each" also with timers?

    For example I have plenty of objects that call a function when "on timer" triggers, but potentially the same timer could expire on multiple instances of the same object at the same time.

  • Thanks a lot, it works now!

  • Hi everyone,

    I'm encountering problems with functions. When a function referring to different instances of the same object, or different objects of the same family is called multiple times in the same tick, weird results may happen.

    I've made a very simple capx to show what I meant:

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

    In this capx, 2 objects of the same size and of the same family are partly superposed, and a function putting them to red color is called when you hover over an object of that family.

    The result is the following:

    When hovering both objects at the same time, only one object is put to red.

    When hovering an object, then the other one, the second object is put to red only when you're not hovering the first object anymore.

    Is there a way to make this function work as intended, i.e. having both object turn to red when they are hovered together?

    By the way that is what happens if you're not using functions but just putting "set animatin to red" as the action of the first event, but I would like to use functions if possible.

    Thanks ! <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

  • Thanks a lot for the update. This is much appreciated!

    Supporting NW 0.28 is life changing, as for some reason preview with NW didn't work with 0.27 for me.

    Updating to SDK 1.42 right now.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's working now! I just forgot to hit that big "publish" button at the back of the Steamworks interface.

    Thanks a lot for the help, MadSpy .

  • Hi MadSpy and thanks a lot for the help.

    I was very surprised to see the following error message in the console:

    The achievement name seems to be somehow not valid, even though it is just "test". I double checked that there was no space added in Steam, but it's not the case. As you can see from the screenshot in my previous post, the name seems to be the same in Steam and in the code so I'm still scratching my head here. I even tried to add a capital to "Test" in C2 in case it is the actually displayed name which needed to be put in the code, but it's not working either.

    Could the Uncaught ReferenceError be the problem?

    Anything else I can try?

    Thanks!

  • Hi,

    After a few days, I'm still unable to make the achievements work in my game.

    Here's my test code

    When exported to Steam, the screen displays "SteamOK", then "Error" when I press spacebar (espace).

    I'm using NW.JS v0.27 (even though I can't preview the game with it for some reason) and the corresponding Steam4C2-Basic version.

    Is there anything else that should be configured in steamworks (except the normal configuration of achievements, as shown below the code) in order to have achievements to work?

    Any suggestion of what I'm doing wrong? AJ2DI maybe?

    Thanks!

    [Edit] I'm using SDK 1.41.0.1 with plugin v. 1.5.1, which seems correct. At the time of posting I was using SDK 1.42, but changing everything to 1.41.0.1 didn't help in any way. I placed all the files from the SDK in the project files as mentionned in the plugin's documentation.

  • rexrainbow

    I updated the plug-in (only the runtime.js has been updated if I'm correct) and tried the capx I submitted in my previous reply, but it's still not working for me.

  • rexrainbow

    Thanks for your reply.

    After investigating, the problem only arises when resuming with the built-in audio plug-in and setting the sound at 0dB. In that case, it seems impossible to play the music again with the built-in audio plug-in

    When resuming with the audiohelper plug-in, everything seems to work just fine.

    Here is a capx if you're interested. But I'll just use the audiohelper plug-in to resume from now on, so no urgent fix needed as far as I'm concerned.

  • Hi rexrainbow ,

    For your information, I encountered the same kind of bug we were talking 5 replies above this one while using the "pause" with fade out functionality of Audio Helper. It works fine with "stop", but "pause" still make the tag to be shut down forever.

    Cheers and thanks a lot for your hard work!

Rable's avatar

Rable

Member since 6 Aug, 2014

None one is following Rable yet!

Connect with Rable

Trophy Case

  • 10-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

15/44
How to earn trophies