Howdy, Stranger!

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

In this Discussion

Playing with two-stick controls on “Froggy”…

edited December 2021 in Codea Craft Posts: 1,827

Added the gravity-less version of the Voxel Walker to the ‘Froggy’ demo.

It’s worth checking out just because it’s kind of fun to fly around the whole landscape as the cars go by.

It breaks the game though. I had to interrupt the existing touch controls for the dual-joysticks to work.

I’m not sure where to go from here, but it seems like there’s potential for something fun…

Tagged:

Comments

  • edited November 2021 Posts: 1,827

    Update:

    The right joystick now controls the motion of the little dude, but it’s kind of janky because it also still controls the camera direction.

    I haven’t figured out how to separate them yet.

    Still kind of fun though.

    Note: this version contains an updated VoxelWalker project, too. So if you already have that installed you might want to delete it and use this one. It’s the same one on the VoxelWalker thread, though, so if that’s your current version you can skip it.

  • Posts: 1,827

    Update:

    Now there’s a toggle in the upper right to switch between controlling the camera position and controlling the hopper.

    .zip includes the most up-to-date VoxelWalker (renamed “Dual-Stick Voxel Player” because “Walker” doesn’t really fit anymore).

    It’s still fighting with the existing camera settings a bit, so the whole thing’s still a bit janky, but it’s much more playable than before. Try it out! And feel free to modify it however you want!

  • Posts: 1,827

    Updated so the controls work much better, and switching between FPS and third-person view is much less glitchy.

    I have a major problem in that I can’t figure out how to get the frog to move the relative direction of the joysticks, only the absolute direction.

    My joysticks are generating Dpad directions, so moving the joystick towards the top of the screen creates an “up button” output.

    But if I’m looking at the frog from the right, and I push the joystick towards the top of the screen, I want the output to be “left button”, so that the frog moves in the direction I’m aiming the joystick relative to the play area, not relative to the screen dimensions.

    Plus I can be rotated at any angle to the frog, a full 360 degrees.

    Can anyone give me pointers on this?

Sign In or Register to comment.