Erick's Quest

I’ve spent a lot of time on this. I will add more levels soon.

–Code here


-- Erick's Quest


-- Use this function to perform your initial setup

function setup()
    displayMode(STANDARD)
    parameter.integer("x", 260, 630, 629)
    parameter.integer("y", 160, 350, 100)
parameter.number("Level", 0, 1, 0)
t = 0

end
-- This function gets called once every frame
function draw()
    -- This sets a dark background color 
    background(56, 56, 56, 255)
    if Level == 0 then
        noFill()
        stroke(242, 255, 0, 255)
        strokeWidth(5)
        rect(200, 550, 400, 100)
        fill(92, 255, 0, 255)
        fontSize(60)
        text("Erick's Quest", 400, 600)
        fontSize(50)
        fill(255, 255, 255, 255)
           text("SELECT YOUR LEVEL!", 400, 500)
        rotate(ElapsedTime)
        started = false
        end
        if CurrentTouch.tapCount == 1 and Level == 1 then
            started = true
            fontSize(20)
            textWrapWidth(130)
            t = t + 1
            fill(255, 255, 255, 255)
            text("Starting in:" ..t, 400, 500)
        end
        if t > 299 then
            t = t - 1
            fill(255, 255, 255, 255)
             text("Level 1: The basics", 400, 700)
                    for i = 1,3 do
        sprite("Planet Cute:Grass Block", 200 + 101*i, 70, 320) 
    end
    fill(0, 33, 255, 255)
    text("Drag your finger on the screen to move the circle(your weapon).", 200, 200)
    text("When you release your finger everything will clear so, do that and tap anywhere.", 200, 500)
    text("The X parameter is accross the screen.", 100, 100)
    text("The Y parameter is up and down", 690, 700)
    
end
--ERICK! YAY!
tint(255, 255, 255, 255)
sprite("Planet Cute:Character Boy", x, y)
    --Erick's weapon
    strokeWidth(3)
    stroke(255, 255, 255, 255)
    fill(255, 0, 0, 255)
    ellipse( CurrentTouch.x, CurrentTouch.y, 50)
    fill(0, 8, 255, 255)
    ellipse(CurrentTouch.x, CurrentTouch.y, 20, 30)
    
    if started == false then
     for i = 1,3 do
        tint(255, 255, 255, 78)
        sprite("SpaceCute:Planet", 200 + 101*i, 70)
        end
    end
end

–Sorry! Last one is a bit bad! Here is is:
–Code here


-- Erick's Quest

-- Use this function to perform your initial setup

function setup()   
  displayMode(STANDARD) 
    parameter.integer("x", 260, 630, 629)    
 parameter.integer("y", 160, 350, 100)
 parameter.number("Level", 0, 1, 0) t = 0

end
 -- This function gets called once every frame 
function draw()  
   -- This sets a dark background color     
 background(56, 56, 56, 255)
     if Level == 0 then      
   noFill()      
   stroke(242, 255, 0, 255)     
    strokeWidth(5)        
 rect(200, 550, 400, 100)    
     fill(92, 255, 0, 255)      
   fontSize(60)       
  text("Erick's Quest", 400, 600)       
  fontSize(50)   
      fill(255, 255, 255, 255)   
         text("SELECT YOUR LEVEL!", 400, 500)   
      rotate(ElapsedTime)       
  started = false       
  end    
     if CurrentTouch.tapCount == 1 and Level == 1 then        
     started = true             
fontSize(20)            
 textWrapWidth(130)          
   t = t + 1        
     fill(255, 255, 255, 255)          
   text("Starting in:" ..t, 400, 500)     
    end         if t > 299 then         
    t = t - 1         
    fill(255, 255, 255, 255)            
  text("Level 1: The basics", 400, 700)                
     for i = 1,3 do      
   sprite("Planet Cute:Grass Block", 200 + 101i, 70, 320)    
  end    
 fill(0, 33, 255, 255)  
   text("Drag your finger on the screen to move the circle(your weapon).", 200, 200)     text("When you release your finger everything will clear so, do that and tap anywhere.", 200, 500)  
   text("The X parameter is accross the screen.", 100, 100) 
    text("The Y parameter is up and down", 690, 700)      
end 
--ERICK! YAY! 
tint(255, 255, 255, 255)
 sprite("Planet Cute:Character Boy", x, y)     
--Erick's weapon     strokeWidth(3)
     stroke(255, 255, 255, 255)
     fill(255, 0, 0, 255)   
  ellipse( CurrentTouch.x, CurrentTouch.y, 50) 
    fill(0, 8, 255, 255)     
ellipse(CurrentTouch.x, CurrentTouch.y, 20, 30)      
    if started == false then   
   for i = 1,3 do         
tint(255, 255, 255, 78)      
   sprite("SpaceCute:Planet", 200 + 101i, 70)    
     end  
   end 
end

Remember to use

~~~
Your code
~~~

for it to format properly. Also, it appears you only shared the main tab - try long pressing on your project, and selecting “copy,” then paste that.

@SkyTheCoder, i think this is not just the main tab, it appears to be the full code.

@code_maker, there are two errors in the code both 101i this does not work, you need to change it to 101*i (these are in your sprite commands)

@JakAttak Oh…um…looking at that again, it appears that is the full code. I would have expected it to have a few tabs and classes, and a GUI…

Sorry guys,I don’t know how to make tabs work together…

If you need to copy all tabs just hold down on your project and tap copy

Uuuhm… How does it work?