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 / Simple Starfield

Author
Message
Da_Zippa
19
Years of Service
User Offline
Joined: 5th Jun 2005
Location:
Posted: 5th Jun 2005 19:43
Knows someone a code for a simple starfield
with stars moving from the right to the left like in the Game called "Dove" or other simple 2D Spacegames ?

i just found one With a starfield in the tutorial corner
but these stars dont move
and i dont understand how to get them moved

Thx for help
i hope i can help you 2

Sry for my english i am a stuoid german with and i know a lot of stupid german teachers who never were able to teach me english correctly !!! sry for that!!!
ReneGade RG
19
Years of Service
User Offline
Joined: 13th May 2005
Location:
Posted: 5th Jun 2005 22:46 Edited at: 5th Jun 2005 22:47
Well, you load the image...make it into a sprite....make it move right to left! Don't use bitmap commands, and make sure the movement is continuous! Understand?

It's amazing you're reading this, surprise... you still are.
ReneGade RG
19
Years of Service
User Offline
Joined: 13th May 2005
Location:
Posted: 5th Jun 2005 22:55
Oh... make sure that the image is larger than the screen...so when it moves left to right, you won't see blank bits!

It's amazing you're reading this, surprise... you still are.
vid1987
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Oklahoma
Posted: 5th Jun 2005 23:18
Quote: "Oh... make sure that the image is larger than the screen...so when it moves left to right, you won't see blank bits!
"


I really don't understand why you'd need to do that...

Anyways..

To move a sprite left to right you need to do something like this...



Peace


"If I wasn't so poor... I'd be rich..." Me
Da_Zippa
19
Years of Service
User Offline
Joined: 5th Jun 2005
Location:
Posted: 6th Jun 2005 02:15
Thx for th@

i hope my english is not to bad, but what can i do
there is no german Dark Basic Community

also danke für alles freunde

Sry for my english i am a stuoid german with and i know a lot of stupid german teachers who never were able to teach me english correctly !!! sry for that!!!
DBAlex
19
Years of Service
User Offline
Joined: 4th Oct 2004
Location: United Kingdom
Posted: 6th Jun 2005 06:00
Try this too:




The BG file should be 640x480 and image 2


AMD 64 3000 + 512mb RAM + 80GB HD + Radeon 9600se 128mb
http://www.dbastudios.cjb.net
NanoBrain
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Portland, OR
Posted: 6th Jun 2005 08:49
Da_Zippa,

Below is source of a method to create a 2D starfield using individual sprite images. I have attached to this post the folder containing the images used, along with the .dba file to run. The stars' backgrounds are not completely transparent, because the fact that I used compressed .jpg images. However, the images can be edited. Enjoy.




+NanoBrain+

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-09-23 21:22:59
Your offset time is: 2024-09-23 21:22:59