frame

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Register

Two problems I'm facing.

edited August 31 in How To
First off, I want it so players can earn points when they're in a certain proximity of an object, and I've also made it so the score counts up number by number instead of instantly popping to the value it should be at, but whenever I go to the proximity the number will just keep rising and rising, and even when I leave the proximity it keeps rising and I can't stop it. See the image below.

IMG_0936

Also, I want a behavior to trigger when you click your mouse, but when I set it to "down" on the mouse, if you click and hold it'll continually power the behavior, when I only want it to happen once, I couldn't get this to work with switches.

Screen Shot 2018-08-30 at 9.40.17 PM

Comments

  • I can't tell from the screenshot: is the output of the switch connected to its off input? Are you saying the switch is allowing the mouse input to trigger, even once it's turned off?
  • edited August 31
    @grazer It’s not connected like that, I’m just trying to make it so something gets triggered once on a single click, so the user is unable to click and hold to continually power the behavior.

    (I’m sure this is poorly explained without seeing what I’m talking about)
  • Will this work?:

    1) Connect the mouse down to the switch in
    2) Connect the mouse up to the switch on
    3) Connect the switch out to the switch off

    Now when you click the mouse, the switch will output and then turn itself off until you release the mouse button.
  • edited August 31
    @grazer Well the switch works, but not what I'm trying to turn on, I'm trying to use an emitter. Not very specific but I'll try to figure it out.

    Edit: Okay that's fixed, still having issues with the first problem.
Sign In or Register to comment.

flowlab.io

| make games in your browser
@ 2017 Flowlab.io, All rights reserved.

Contact us

Get In Touch