Howdy, Stranger!

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

How to make it so when you touch the screen your charactar jumps

edited December 2015 in Questions Posts: 87

How do you make you charectar jump when you touch the screen?
Some easy example code that you can useas a layout:

function setup()  
-- This function gets called once every frame
function draw ()
    -- This sets a dark background color 
    background(40, 40, 50)
        fill(255, 2, 0, 255)
    --make your charactar
    --make the ground
    fill(70, 255, 0, 255)
    rect(WIDTH/4, HEIGHT/50,550, 170)


  • IgnatzIgnatz Mod
    edited December 2015 Posts: 5,396


    1. Learn how to make meshes
    2. Learn about 3D perspective

    It's quite tricky, but IMHO the most fun you can have with Codea.

    I've written an ebook on 3D in Codea, below. I wrote it because I had never done it before and found it difficult at first, so I hope it helps.

    I'm happy to help you, but do some reading first!

    PS if you haven't done meshes yet, you need to learn that first, my other book on Codea covers it and there is lots of good code on the forum.

  • edited December 2015 Posts: 87

    Thanks for the help!

Sign In or Register to comment.