How To

why won't this show anything?

1

CubicleHead 2021-01-04 20:45

I'm working on a rpg style game and this is the start of it but when i run this it will not display anything but a blank screen

i'm on mac desktop btw

here is the code:

GAMEPAD 1
RANDOMIZE TIMER

HP=10
X=1
Y=1

DO
PAL 1
CELL X,Y,1
TEXT 0,0,STR$(HP)
CLS
WAIT 10
LOOP

#1:MAIN PALETTES
053F2F00003A102A00152A3F0035252A
05302010000C0804003F2A15003F2A15

#2:MAIN CHARACTERS
00000000000000000000000000000000
1A1A1AE7E2E04066020226FFFEFC6400
18183C4A1008182418183C4A10081824
3C4299A5BDA5423C3C7EE7DBC3DB7E3C
3C4299A5BDA5423C3C4281DBC3DB7E3C
3C4299A5BDA5423C3C42818181DB7E3C
3C4299A5BDA5423C3C4281818181423C
3C42B9ADA5B9423C3C7EC7D3DBC77E3C
3C42B9ADA5B9423C3C4281D3DBC77E3C
3C42B9ADA5B9423C3C42818181C77E3C
3C42B9ADA5B9423C3C4281818181423C
A55AA55A5AA55AA50000183C3C180000


Roy___ 2021-01-04 20:58

You are drawing everything then immediately clearing the screen.

Move the CLS up under the DO to clear the screen before drawing.

You may also want to switch the WAIT 10 to a WAIT VBL so the drawing is synced to the screen refresh.


CubicleHead 2021-01-05 02:32

Ohhhh... Thanks :) that was dumb of me!


Log in to reply.