gumshoe2029's Forum Posts

  • If I ever finish this game I might start making plugins for sale here, lol.

  • Yea, you can do anything you want with those variables (within the typing constraints).

    random() is a good system expression to learn.

  • You probably want to use the sprite collision detection, then see if the Physics behavior has a flag something like:

    if Sperm sprite is colliding with planet sprite

    then

    Sperm sprite physics flag = off

    then you can just manually move the sperm sprite around the planet object.

  • It was just that, an idea. I have never gotten it working myself, lol.

    You will want to put a wait in there though. The asynchronicity of JavaScript is such that it will break without a short (like 0.05-0.1s) wait in the loop.

  • AutoScaling.capx

    We use dynamic UI rescaling using Viewport.

    It is a lot of work, but it works quite nicely. You could conceivably do it only when they resize the screen, but I have it running every tick on my client for now.

    Note: This disables the inherent browser zoom though.

  • Usually, (kind of guessing here, based on past experience), the "secret" should be provided by Google on a per-developer basis. i.e. every developer has their own "secret" code that you include in all of your API calls.

    I would ask Google for the secret.

  • Yea, object references and asynchronicity are the bane of my Construct existence.

  • I actually started building our website like this (the Load Image from URL way) and ended up going to Pode's iFrame plugin instead, since we needed more than just images.

    That pode's iFrame thing is a marvel. You could conceivably nest Construct projects inside other Construct projects ad infinitum. It is nuts.

    I have considered doing this for our more intensive UI elements, having independent subprojects that load inside of an iFrame.

  • You can definitely lerp the opacity.

    Something like:

    Set Opacity: lerp(0,100,((1-0.09^(x-2))/(1-0.01^(x-2))))

    That way you have nice smooth transitions both directions.

    Lol. lennaert beat me to it.

  • Rex's Date plugin uses System time. Like Magistross says, do not use Rex's date plugin if you don't want people cheating in your game by changing their System time clock.

    http://timezonedb.com/api for free AJAX API calls to get a Unix Timestamp.

  • then compare the correct_index value (the #5 index slot in your array; or 6th slot) to the player's choice, like:

    if player_choice == JSON.array.At(5)

    then Set Text: "Correct!"

  • Your description is vague and you need to post the image links in text.

  • Have a radar wave sprite and spawn it every 1-2 seconds, and have it grow in size as it moves.

  • Not that I know of. I am not sure that it is wise to use long unskippable cutscenes in games in general though.

    The issues that you experience probably depend on the JavaScript player that you are using, file size, your internet connection speed, etc.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I don't know that you can autofit the text using font size changes, but you can definitely fit the text object to the text using events.

    You could try a hack solution, like:

    Do while: Compare Text.TextWidth to Text.Width

    and set font size: Text.FaceSize - 1

    Until it fits.