Making characters
Posted: Mon Oct 06, 2014 1:51 pm
Hi there everyone sorry to sound like a bit of a newbie at this but I am ! Just wondering how to create a character that can move that's all
Thanks
Thanks
int player_x = 0;
int player_y = 0;
int boxDim = 5;
gb.display.drawRect(boxDim,boxDim,player_x,player_y)
gb.display.drawBitmap(player_x,player_y,bitmap_name_goes_here)
if(gb.buttons.pressed(BTN_button_goes_here)){
player_x_or_y = player_x_or_y + or - 1;
}