picture

Blitz3D Forums/Blitz3D Beginners Area/picture

Agamer(Posted 2003) [#1]
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


ashmantle(Posted 2003) [#2]
You can use TileImage instead.. look it up ;)


Bremer(Posted 2003) [#3]
Being that your are using float just add 0.2 or something like that and it will move slower.


GfK(Posted 2003) [#4]
Yes, and don't use the Delay command in this instance - use VWait.


Anthony Flack(Posted 2003) [#5]
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



Bremer(Posted 2003) [#6]
and if its too fast, then just use a number less than 1, eg. 0.2 or 0.5, etc.