picture
Blitz3D Forums/Blitz3D Beginners Area/picture
| ||
I want to have an image scroll up the screen at a slow rate a thik you have to change the y coridants but I'm not quite sure how to get it goind up slowly I got this but it's a bit jerky Graphics 800,600 scroll=LoadImage("scrolling text.jpg") l#=600 Repeat DrawBlock scroll,0,l# Cls l#=l#-1 Delay 10 Until l#=-100 I don't thinks thats how it's ment to be done |
| ||
You can use TileImage instead.. look it up ;) |
| ||
Being that your are using float just add 0.2 or something like that and it will move slower. |
| ||
Yes, and don't use the Delay command in this instance - use VWait. |
| ||
more importantly, don't do a CLS straight after your drawblock! You're nearly there though - your use of the variable in the y-coordinate is spot on. Try this way:Graphics 800,600 scroll=LoadImage("scrolling text.jpg") l#=600 setbuffer backbuffer() Repeat Cls DrawBlock scroll,0,l# l#=l#-1 flip Until l#=-100 |
| ||
and if its too fast, then just use a number less than 1, eg. 0.2 or 0.5, etc. |