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 / Help me Please!

Author
Message
ZeRoXX
18
Years of Service
User Offline
Joined: 25th Mar 2006
Location:
Posted: 25th Mar 2006 17:42
Can someone help me?

Waht´s wrong with this Code?
SirFire
19
Years of Service
User Offline
Joined: 4th Apr 2005
Location: North America
Posted: 25th Mar 2006 20:42 Edited at: 27th Mar 2006 11:32
Clicking on the code link says:
Quote: "Error obtaining Source Code, invalid ID. Sorry but I've given up.
"


New forum members cannot attach code, please use the [C0DE][/C0DE] tags instead. (spelled code)

[EDIT]
actually, it should be a capitalized CODE

ZeRoXX
18
Years of Service
User Offline
Joined: 25th Mar 2006
Location:
Posted: 26th Mar 2006 08:58
Oh...
[Code]sync rate 60
sync on
backdrop off
load bitmap "800x600.jpg"
x1 = 352
y1 = 16
x2 = 784
y2 = 384
get image 1,0,0,800,600,0
get image 2,x1,y1,x2,y2,0
sprite 1,0,0,1
sprite 2,x1,y1,2
spr = 2
repeat
tv# = tv# + 0.01
set sprite texture coord spr, 0, 0.0, 0.0 + tv#
set sprite texture coord spr, 1, 1.0, 0.0 + tv#
set sprite texture coord spr, 2, 0.0, 1.0 + tv#
set sprite texture coord spr, 3, 1.0, 1.0 + tv#
do

if upkey()=1 then spr=2
if downkey()=1 then spr=1
sync

until spacekey()=1 [/Code]
Silent Knight
19
Years of Service
User Offline
Joined: 25th Jan 2005
Location: In Your Mind
Posted: 27th Mar 2006 04:53 Edited at: 27th Mar 2006 04:54
maybe because you didnt definbe the bitmap with a number. This might help



oh and be sure to close your code tags with a [/C0DE] tag

Cyberspace must be a really popular place to live.

Login to post a reply

Server time is: 2024-09-24 19:34:13
Your offset time is: 2024-09-24 19:34:13