I've been trying for the longest time to write a 2D Action / RPG style engine. Something very much like SNES "Zelda : A Link To The Past" meets "City Of Heroes" & "City Of Villains" however I keep running into a dead end.
I have been using DBPro for about two years now, sadly I thought I could gun it alone and then reality gave me a big kick in the pants !!! The truth is I've been tryng to create a Marvel Comics 2D Action / RPG.
Of course the game will not be for sale because I dont own the rights and I do not wish to go to jail for a very long time but
however I do own the rights to the game engine which I've developed so far. Anyway, when I'm finished with the game I will check and see if I'am allowed to place it here for download.
Okay here I go, some of the many problem's that I'am having is...
[1]. I've figured out how to get my sprite to move around on screen using the keyboard input. So far so good but what my sprite is missing is two important things :
[A]. My sprite has no animation, so when I press the upkey, downkey, leftkey or rightkey my sprite does not face or animate in the direction it is going.( It moves towards the direction I choose but nothing else )
[B]. I just need a pointer on this one, I've been messing around with the CREATE ANIMATED SPRITE command, in order for this to work do I need to create a sprite sheet with a grid that's 4x4 or 6x6, placing individual sprite graphics in each box or frame ?
[C]. I cannot follow my sprite when it goes off screen, for example if my sprite was on a stage,map,level whatever you want to call it, I could not follow it from point "A" to point "B".
Alright I'll hold off on the other problems until I can get some help with the one's I wrote above here. Any how here's the code I wrote for my sprite movement...
SET DISPLAY MODE 320,240,32
SYNC ON : SYNC RATE 60
HIDE MOUSE
DO
ICEMAN(PLAYER_01)
LOOP
FUNCTION ICEMAN(PLAYER_01):
SET IMAGE COLORKEY 255,0,255
LOAD IMAGE "Iceman 01.bmp",500
ICEMAN_X = 100
ICEMAN_Y = 100
DO
IF UPKEY() = 1 THEN ICEMAN_Y = ICEMAN_Y -1
IF DOWNKEY() = 1 THEN ICEMAN_Y = ICEMAN_Y +1
IF LEFTKEY() = 1 THEN ICEMAN_X = ICEMAN_X -1
IF RIGHTKEY() = 1 THEN ICEMAN_X = ICEMAN_X +1
SPRITE 1,ICEMAN_X,ICEMAN_Y,500
FASTSYNC
LOOP
ENDFUNCTION :
The ghost who walks.