darkbasic...help: assigning sprites a velocity and random spawn - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

darkbasic...help: assigning sprites a velocity and random spawn

F33N3YF33N3Y Posts: 1Member
Hello
I am working on a game for my computing school project and am using DarkBasic Pro

My game will involve the dodging of sprites that appear at random positions at the top of the screen and will move down to the bottom.
Tried with little success to just achieve a random spawn point at top of the screen but it doesn't work ! :

xpos2=RND(1023)+1
ypos2=10
FOR ant=1 TO 10
load image "h:CompAdv. Higherantsprite(final)png.png",2
sprite 2,xpos2,ypos2,2
paste sprite 2,xpos2,ypos2
NEXT ant

Any help with random spawning along the x-axis or sprite velocities would be greatly appreciated
THANKS ! :)
Sign In or Register to comment.