machineboy's Forum Posts

  • 7 posts
  • It doesn't support sharing images yet, just text and URLs.

    Does this work when used in a web/browser-based game, or does it only work in native apps?

  • Thanks, it'll work fine locally in the browser, I just open up a small separate window to run the preview in.

    I couldn't get url parameters in the remote preview to work, but for now I'm fine

  • Perfect, thanks! (I only wish you could change the settings on the fly instead of restarting construct, but that's for another post : )

  • Does anyone know if there's a way to pass variables in the URL in the preview window? When uploading to my server I can pass parameters using the Browser.QueryParam("variable") method this works well, but I can't test this in the preview windows as the URL can't be edited. Does anyone know a workaround without uploading every build to my server?

  • Aha, so strings should never have quotation marks around them when setting them?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi, thanks for your reply.

    I made an example using the endless runner template:

    dropbox.com/s/9sqvdlocg32qz ... g.c3p?dl=0

    If you change the Set Animation to "playerA", the animation works, but setting it to selectedPlayer (the global string variable with "playerA" value) it fails.

    Edit: can't post urls yet, so try after .com/ please paste s/9sqvdlocg32qzkn/animationBug.c3p?dl=0

  • Hi, I'm trying to set the animation of a sprite based on a global variable. I've set up a Player sprite with an animation called "playerA".

    I've set a Global String SelectedPlayer = "playerA", and try to use this On Start on Layout like this:

    Player Set animation to SelectedPlayer, but this is not working.

    If I do Set animation to "playerA" it works correctly, but I need to set this dynamically via variables.

    If I alert the SelectedPlayer string it says "playerA", so the variable is available and correct. Is this a bug?

  • 7 posts