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.

Newcomers DBPro Corner / Sprite X command not working

Author
Message
Mr Inquisitive
19
Years of Service
User Offline
Joined: 5th Feb 2005
Location: Who Cares?
Posted: 7th Apr 2005 12:27
when i do the code:
if downkey()=1
sprite x(5)=sprite x(5)+20
endif

It won't let me. It says that "SPRITE EXPECTS INTEGER,INTEGER,INTEGER,INTEGER"
Any way I can fix this?
-I use DBC

Horus Game Developments
freewebs.com/horusgames
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 7th Apr 2005 13:05
Sprite X() is only used to return values (where the sprite is located). You can't use it to move the sprite. 'Sprite' is your best bet, but 'Offset Sprite' can work for you as well.

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II

Login to post a reply

Server time is: 2024-09-23 17:27:11
Your offset time is: 2024-09-23 17:27:11