dop2000's Forum Posts

  • You can add another condition to the second event - "Touch is not touching MenuButton"

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You don't necessarily need custom movement here. You can move the follower with 8-Direction too, but the implementation depends on the game (whether there are obstacles, enemies etc.)

    Here is an easy way to follow with 8direction:

    Or you can do this with "Simulate control"

  • Are you using Bullet behavior? This can happen when you set Bullet Angle of Motion while Bullet speed is 0. Make sure to set sprite speed before setting angle of motion.

    You can also simply set sprite X to viewport center one every tick.

  • 1. You are probably using Construct 2 runtime, switch your project to Construct 3 runtime. JSON is only available in C3 runtime.

    2. You may have "Simplified user interface" option enabled in program Settings.

    3. You may have already added JSON to your project and renamed it.

  • You can open examples from Construct 2, they will all work in Construct 3 (unless they are using some third-party addons).

    Music should not stop when you are switching layouts. Make sure your music file is in "Music" folder. On start of layout check if audio tag "music" is playing. If not playing, start playing music with tag "music". If already playing, do nothing.

  • Which behavior are you using for players? If it's Platform or 8-Direction, you can use "Set vector" action.

    For example, if you want to knock back to the left, set vector X to -500, or to (player.Platform.VectorX-500). You may need to experiment with the value of course.

  • Yes, the link works, but your project is not in a good order.

    You need to name your variables properly. "Variable4" is not a proper name.

    You need to add two image points to the SliderBar - "start" and "end". In event 3 you need to set volume to tag "menu music", not to empty tag "".

    Just try to be more careful when copying things from tutorials into your project and you'll not have to wait a month for someone to help you.

  • It depends on what you are trying to do. If you want the sprite to slow down, put a negative value in "Acceleration" field.

    If you want the sprite to stop after some distance, use "Bullet compare distance traveled", if it's greater than some number, disable Bullet behavior.

    If you just want to destroy sprites as they are leaving the screen, add Destroy Outside of Layout behavior, or Fade behavior with Destroy=Yes after some timeout.

  • What's the problem with these characters? I tried Set text to "() [] |! ¡? ¿ - & : = " and it works fine for me.

    If you are reading text from a file, you need to save it with Unicode encoding.

  • Thanks, Ashley!

  • Ashley, How do you load the image back from Local Storage into a sprite, if it's not in Base64?

  • There must be something wrong with your server where the images are hosted. When I'm trying to open image link directly, my browser tells me that the connection is not secure, yet the protocol is "https".

    If this doesn't help and you have an android phone, you can configure USB debugging and look for errors in the console log.

  • It's a bit complicated.. See these posts:

    construct3.ideas.aha.io/ideas/C3-I-762

    construct.net/en/forum/construct-3/how-do-i-8/is-it-possible-to-save-multipl-141546

    So the only way to do this now is to paste the image onto Drawing Canvas, save image, request image url with AJAX, feed AJAX response to Binary Data object, then save data as BASE64 string in Local Storage. I am not sure about the UserMedia, if you already have image url, maybe you can skip the steps with Drawing Canvas.

    To load saved image back into the sprite - use "Sprite Load from URL" and put the base64 string in as the url.

  • Add "Platform info" object to your project, use its conditions.