I get my screen text print overlaying on top of the previous screen images...do I need to clean the back image or something?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: Schranz0r on 2013-Aug-31
"WHILE TRUE" - Loop for keyevents?!
pls show me your code!
FUNCTION getdir:
WHILE TRUE
SLEEP 5
IF KEY(71)
xm = -16
xy = -16
BREAK
ENDIF
IF KEY(72)
xm = 0
xy = -16
BREAK
ENDIF
IF KEY(73)
xm = +16
xy = -16
BREAK
ENDIF
IF KEY(75)
xm = -16
xy = 0
BREAK
ENDIF
IF KEY(77)
xm = +16
xy = 0
BREAK
ENDIF
IF KEY(79)
xm = -16
xy = +16
BREAK
ENDIF
IF KEY(80)
xm = 0
xy = +16
BREAK
ENDIF
IF KEY(81)
xm = +16
xy = +16
BREAK
ENDIF
WEND
ENDFUNCTION
Quote from: Ian Price on 2013-Aug-31
SHOWSCREEN will only display whatever is happening within that loop, if it's not displaying anything then whatever you're drawing is not in that loop.
Can you share the bit of code to show us what you are doing?
Quote from: okee on 2013-Aug-31
Never played the original but this is interesting
Just a few notes
1. A grid would be nice just to easily calculate the distance you want to move a unit
even just a very feint coloured one.
2. the game doesn't end after you defeat last enemy
3. had a section of land on left that was 2 squares wide, the enemy pulled onto it in a boat
once i defeated the enemy i couldn't get past the empty boat
4 also sometimes when i put a unit on a boat and the boat pulls away the unit is left in the sea