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 / what's wrong with this coding

Author
Message
Steel
18
Years of Service
User Offline
Joined: 7th Apr 2006
Location:
Posted: 21st Apr 2006 07:50
I can't get my image to rotate what is wrong:

sync rate 60
Set Display Mode 1280, 1024, 16
Load Image "Media\Background.jpg", 1
Load Image "Media\Wheel.png", 2
Load Image "Media\Boards.png", 3
Load Image "Media\Logo.png", 4
sprite 1,200,200, 2
Do
rotate sprite 1, 75
Loop
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 21st Apr 2006 15:19
sync inside do loop?

David iz cool
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 21st Apr 2006 16:19
this code: rotate sprite 1, 75

your only telling db to rotate your sprite 75.

you have to change this code to :

rotate sprite 1,sprite angle(1)+1

this tells db to keep rotating the sprite.

Login to post a reply

Server time is: 2024-09-24 21:28:58
Your offset time is: 2024-09-24 21:28:58