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.

2D All the way! / Help with sprites

Author
Message
SotaKoodi
15
Years of Service
User Offline
Joined: 14th Sep 2008
Location:
Posted: 14th Sep 2008 20:27
Hi. Im making simple 2D asteroid shooter.

I want the bulletsprite to go from my spaceship slowly forward so i can see it all the time until it hits the righ wall.

Here's my source code:



I will really appreciate yout help thanks.
Deathead
17
Years of Service
User Offline
Joined: 14th Oct 2006
Location:
Posted: 14th Sep 2008 21:03 Edited at: 14th Sep 2008 21:03
Why do people post in the 2d chat section. You'd get better answers over at the Darkbasic area.
2d Chat is for 2d Art, etc. etc.


"Your greatest teacher is your harshest critic"-Butterfingers
AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 28th Sep 2008 06:44 Edited at: 9th Oct 2008 03:03
Ya, you'd be better off posting on the DBP boards, you're more likely to get a good response.

Ashingda 27
16
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 29th Sep 2008 05:23 Edited at: 29th Sep 2008 05:26
There's a few things for you to learn. Format your codes so it's easier for both you and others to follow.


Use more sub routines insted of just listing out your codes to keep it looking cleaner and size down your main loop. Something like this. I didn't understand what all your variables are for so I might have misplaced them in the wrong sub.


You can structure it even farther into phases or states or what ever you want to call it. This makes searching for a specific task much faster.


And lastly about your laser moving right slowly. See if this helps, this is the most I can do without running it myself. You might have to fix some loose variables.
AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 7th Oct 2008 22:46
Quote: "What nonsense are you telling him? It is perfectly fine to post ANY 2D-related questions here."


Yes, but the DBP board is far more active and you'll get responses faster. Just look at the # of posts: DBP board, about 261,000 posts. 2D board, about 16,000.

AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 9th Oct 2008 03:02
Quote: "Anyway, it remains a fact that your statement about this section only being for posting PlayBASIC code was and still is nonsense."


Well you're right about that, I'll rephrase it.

Login to post a reply

Server time is: 2024-05-02 17:41:45
Your offset time is: 2024-05-02 17:41:45