Or have set ones with requirements like have 2000 gold and level 2

hmmm yeah that's a good idea! I'll try it! Thx!

the error might be that it is checking if the player is touching multiple times, the check might be in a function that is used multiple times every draw, but i have no way of knowing unless i can see the code

createEdgeSprites();
var level = 0;
var player = createSprite(200, 200);
var next = createSprite(375, 75);
next.setAnimation("goldui16_result_1");
player.setAnimation("animation_1");
var ground = createGroup();
ground.add(createSprite(47,110,150,50));
ground.setRotationEach(30);
ground.add(createSprite(200,350,300,200));
ground.add(createSprite(100,150,150,50));
ground.add(createSprite(400,250,100,300));
drawSprites();
function draw() {
moving();
LEVELUP();
}
function moving() {
background("white");
if (keyDown("left")) {
player.x = player.x - 2;
} else if (keyDown("right")) {
player.x = player.x + 2;
}
if (keyDown("up")||keyDown("space")){
player.y = player.y + 3 ;
if (player.isTouching(ground)) {
player.y = player.y - 10;
player.velocityY = -20 ;

} else {
player.y = player.y - 3 ;
}
}
drawSprites();
player.collide(ground);
if (player.isTouching(ground)){
while (player.isTouching(ground)) {
player.velocityY = 0 ;
player.y = player. y - 0.1 ;
}} else {
// gravity
player.velocityY = player.velocityY + 1.5;
}
}
function LEVELUP() {
if (player.isTouching(next)) {
level = level+1;
}
if (level===1) {
ground.destroyEach();
}
}
That is da code (all of it so far)

ok so whats happening is when the player touches next the ground moves but nextdoes not move so the next frame the player is still touching next.

    ooooooh ok! IT WORKED! Thx everybody!

    I helped someone, is that a crime now?
    I don't recall saying that I wouldn't help anyone..

    heres a list of reasons why it's better than CDO:

    • runs much faster
    • you don't have to start/stop the program over and over again to get the newest edits
    • an error system that actually helps(it actually tells you where the error is most of the time)
      ex: misspelled variable it will detect and prompt you about, CDO will give you a bunch of mumbo-jumbo
    • customized screen sizes
    • HTML and processing js
    • really good social aspect, 10000 times better than CDO, people actually have profiles and can talk to each other
    • public page doesn't just show recent programs, it shows voted up programs so you don't only get random trash
    • tons of really advanced programmers who make awesome games and are willing to help you out
    • lots of libraries made by users on KA
      ex: octory 3D, deKhan, snail.js(slow neural network, but it works), etc.
    • contests with admin-monitored experience levels, so anyone can have a chance

    and any more things that make it far superior to CDO

    Chat