I'm trying to convert very old (A5) RPG tutorial into LITE-C.
I made it till own the collusion detection, but I skipped one thing.
There is something similar to this:
while(1)
{
if(key_cuu == 1){heru.y += 8 * time; goto skip;}
if(key_cud == 1){heru.y -= 8 * time; goto skip;}
if(key_cur == 1){heru.x += 8 * time; goto skip;}
if(key_cul == 1){heru.x -= 8 * time; goto skip;}
skip:
wait(1);
}
Ofcource label "skip" isn't found in current LITE-C, cause we should define it before using.
But how can I define it? I've never worked with "goto" thing, I'm not looking for workaround for it.
All I want is to define "skip:" label, so I could use "goto" in movement. Thank you all for advices.