1. #221

    Re: Visual Flowchart Editor Tutorials {29} and counting...

    Originally Posted by Barrybarfly
    The camera works perfectly Lu. I just dont understand what is doing what within the logic! lol I can copy it to the xbox and it works great, the tutorial is fine.
    I understood what you meant, but maybe I can try to explain a bit of what is actually happening with the code. The camera is actually very simple, but it doesn't look like it.

    and JaminBen007, I would guess that it IS missing an impulse somewhere. The only way you can lean with that setup is with the Bike Control Lean. If it is not getting an impulse and a number(how much to lean) then it won't work. Have to chat with you later though. I gotta go for now.
    Share this post

  2. #222

    Re: Visual Flowchart Editor Tutorials {29} and counting...

    Added some explanation for the manual camera controls. It doesn't explain the messy bit on the left that involves the gas and brakes, but it should help explain the left and right analog controls part.

    Edit:
    Also added a new OPE to the list. Doesn't get much easier than this one. Clones the movement from a physics enabled object to a non-physics enabled object. Need to double check settings on the OPE later, though.
    Share this post

  3. #223

    Re: Visual Flowchart Editor Tutorials {29} and counting...

    OK I found a couple of bits that were not set up correctly and now my rider always leans forward. I can lean him back but as soon as I release the stick he leans forward again.

    I don't have the Left and Right stick disabled because as soon as I do he doesn't move at all.

    Any help appreciated
    Share this post

  4. #224

    Re: Visual Flowchart Editor Tutorials {29} and counting...

    Originally Posted by JaminBen007
    OK I found a couple of bits that were not set up correctly and now my rider always leans forward. I can lean him back but as soon as I release the stick he leans forward again.

    I don't have the Left and Right stick disabled because as soon as I do he doesn't move at all.

    Any help appreciated
    I found that all of the controls still affect my rider when I'm in the camera mode. Not sure if thats unavoidable or something wrong with the tut or my screw up! LOL
    Share this post

  5. #225

    Re: Visual Flowchart Editor Tutorials {29} and counting...

    Originally Posted by JaminBen007
    I don't have the Left and Right stick disabled because as soon as I do he doesn't move at all.
    That is the thing right there. Left and Right HAVE to be disabled. All that logic is manually setting up the controls based on the left stick horizontal values. They WILL work with the left and right disabled. leaving left and right on will only interfere with the logic for the lean controls.

    If it's not leaning when the left and right are disabled then something isn't connected right. Let me know if that's the case.

    Originally Posted by Barrybarfly
    I found that all of the controls still affect my rider when I'm in the camera mode. Not sure if thats unavoidable or something wrong with the tut or my screw up! LOL
    That's actually just the way it is set up right now. I didn't think it was needed as this is really only for testing. You could add the left and right buttons make them go disabled when the camera is moving. Seemed like that would only make it more confusing for people than it needed to be.
    Share this post

  6. #226

    Re: Visual Flowchart Editor Tutorials {29} and counting...

    Originally Posted by Luthanick
    Originally Posted by JaminBen007
    I don't have the Left and Right stick disabled because as soon as I do he doesn't move at all.
    That is the thing right there. Left and Right HAVE to be disabled. All that logic is manually setting up the controls based on the left stick horizontal values. They WILL work with the left and right disabled. leaving left and right on will only interfere with the logic for the lean controls.

    If it's not leaning when the left and right are disabled then something isn't connected right. Let me know if that's the case.

    That is the case. I know I need to split an impulse off the splitter but I don't know where to put it. Also, I've used all the logic on the right hand side of the tutorial, not just the bottom right corner, is that correct?

    Thanks again mate
    Share this post

  7. #227

    Re: Visual Flowchart Editor Tutorials {29} and counting...

    On a separate note, I've been looking at ways to use the musical notes provided in the tutorial to make my own custom tune.

    Whichever way you look at it, it's going to get very complicated very quickly, but I think this diagram will be the "easiest" set up.



    Anyone else have any other suggestions for easier ones or thoughts on this one?

    The above method will use a hell of a lot of logic as I'll need a splitter/sound event/delay filter/sound object/impulse clamp for every note. The alternative is to have one sound object for each different note, and time the impulses so they hit each one at the correct moment. Absolutely no idea how that would work though.
    Share this post

  8. #228

    Re: Visual Flowchart Editor Tutorials {29} and counting...

    Originally Posted by JaminBen007


    delete spliters and clamps and connect the sound event too 2 notes
    so it will be trigger sound delay sound delay sound etc

    so second sound event turns off the the sound of note 1
    Share this post

  9. #229

    Re: Visual Flowchart Editor Tutorials {29} and counting...

    Ah I see, I didn't know you could activate two sounds with the one event. I've never needed to so I assumed it was only one.

    Thanks for the tip!

    So, like this:

    Share this post

  10. #230
    nannerdw's Avatar Senior Member
    Join Date
    Jan 2013
    Posts
    1,268

    Re: Visual Flowchart Editor Tutorials {29} and counting...

    You can also use a single sound source: trigger it on, and send its impulse to a chain of set value events to change its pitch and volume. You'll have to set the pitch to a 2 input operator, which divides the pitch value by 100 to convert it to its proper decimal value.
    Share this post