Basic

Moderators: None (Apply to moderate this forum)
Number of threads: 1681
Number of posts: 4770

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
darkbasic...help: assigning sprites a velocity and random spawn Posted by F33N3Y on 23 Oct 2009 at 3:07 AM
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:\Comp\Adv. Higher\antsprite(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 ! :)



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.