Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Linker, for the 3rd time!

Author
Message
Charles Black
16
Years of Service
User Offline
Joined: 9th Mar 2008
Location:
Posted: 26th Mar 2008 01:02
Thanks for last time, everybody. Now, I have been able to compile a Hello World! Anyway, after I tried creating a new project, it's not working, but giving me different errors...


Can you help me link something again? Thanks in advance.

Charles
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 26th Mar 2008 01:31
You have one level Right? 2 thru whatever don't exsist yet... comment out the code that references those until you are ready to fill in the blanks.

that's my first stab based on recalling your posts elsewhere and the linker message.

Charles Black
16
Years of Service
User Offline
Joined: 9th Mar 2008
Location:
Posted: 26th Mar 2008 02:08
Ah yes! Thanks for saying that.... I didn't notice. Thanks again jason!

By the way, is there any DGDK function that moves the sprite's X or Y?

Just wondering...

Charles
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 26th Mar 2008 02:17
Quote: "By the way, is there any DGDK function that moves the sprite's X or Y?"


To the best of my knowledge you just enter the dbSprite function again with the new coordinates and referencing the same image.

Lilith, Night Butterfly
I'm not a programmer but I play one in the office
Codger
21
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 26th Mar 2008 02:35
Another option is to rotate the sprite and then issue a move command

Quote: "
This command will move the sprite a specified distance. Used in combination with the dbRotateSprite command a very simple top-down player character can be achieved very easily.

Syntax
void dbMoveSprite ( int iNUmber, float fVelocity )

"


System
PIV 2.8 MZ 512 Mem
FX 5600 256 mem
Charles Black
16
Years of Service
User Offline
Joined: 9th Mar 2008
Location:
Posted: 26th Mar 2008 23:28
@Lilith: Thanks, I'll try that!
@Codger: as I couldn't find any iNUmber references on the sprites page, I assumed it was for 3d sprites...
Codger
21
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 27th Mar 2008 06:51
@Charles Black

The iNumber simply repesent the integer value of the sprite. I posted this code earlier for lilith hopefully it will clarify sprites a little





System
PIV 2.8 MZ 512 Mem
FX 5600 256 mem
Charles Black
16
Years of Service
User Offline
Joined: 9th Mar 2008
Location:
Posted: 27th Mar 2008 23:12
Ah, I see... thanks! I'll try that now!

Login to post a reply

Server time is: 2024-09-29 15:15:43
Your offset time is: 2024-09-29 15:15:43