star shooter

Post your projects here that are WIP.

star shooter

Postby Nirraic » Sun Oct 04, 2009 6:42 am

hi this is my first game i've started working on, i've gotten about half of it done at the moment, i'm have ing trouble with the shooting aspect of the game so if anyone can help me with that would be great.


here is what i've done so far.
Attachments
StarShooter beta version 0.12.nds
latest version of my game: 4/October/2009 1:15 pm
(395.56 KiB) Downloaded 44 times
User avatar
Nirraic
 
Posts: 568
Joined: Sat Oct 03, 2009 2:17 am
Location: Sydeny, Australia
Current Project: a music game (no title)

Re: star shooter

Postby AlexPlunkett » Sun Oct 04, 2009 9:47 am

Lags a bit, but a really cleaned game!
AlexPlunkett
 

Re: star shooter

Postby Nirraic » Sun Oct 04, 2009 9:58 am

yeah i know i'm going to fix it soon
User avatar
Nirraic
 
Posts: 568
Joined: Sat Oct 03, 2009 2:17 am
Location: Sydeny, Australia
Current Project: a music game (no title)

Re: star shooter

Postby Nirraic » Mon Oct 05, 2009 3:14 am

Hi I've been working on my project a bit more, thanks to Eldude for helping me with the bullet fire.




here is the latest version.

you need to press the A button a couple of time for the bullet to come out hoping to fix later on.
Attachments
StarShooter beta version 0.13.nds
latest version: 5/October/2009 10:48 AM
(397.56 KiB) Downloaded 18 times
User avatar
Nirraic
 
Posts: 568
Joined: Sat Oct 03, 2009 2:17 am
Location: Sydeny, Australia
Current Project: a music game (no title)

Re: star shooter

Postby Eldude » Mon Oct 05, 2009 9:13 am

I haven't tested the .nds but I am not sure why you would be having problems with the bullet function.
The only delay is that you can only shoot one bullet at a time with my code.
You have to wait for it to exit the screen or hit something before you can shoot again.
Maybe post your .xds so we can check where you might be getting delays.
If you do not like my post, PM me to let me know and I will edit it.
Available to program your game.(not help you program it)
PM me your proposals. I want to see graphics and story as a minimum.

My Scratch Page: http://scratch.mit.edu/users/Eldude
Image
User avatar
Eldude
 
Posts: 5795
Joined: Thu Jun 26, 2008 9:46 pm
Location: A good place!
Current Project: Coding for one of you!

Re: star shooter

Postby Nirraic » Mon Oct 05, 2009 10:28 am

ok eldude here it is the zip is just a pack and go, also I've added another update.
Attachments
StarShooter beta version 0.14.nds
latest version 5/October/2009 8:22 pm
(398.06 KiB) Downloaded 15 times
starshooter.zip
pack and go of star shooter
if you want to use any sprites please ask before you use them.
(21.97 KiB) Downloaded 19 times
Last edited by Nirraic on Tue Oct 06, 2009 8:31 am, edited 1 time in total.
User avatar
Nirraic
 
Posts: 568
Joined: Sat Oct 03, 2009 2:17 am
Location: Sydeny, Australia
Current Project: a music game (no title)

Re: star shooter

Postby Eldude » Mon Oct 05, 2009 4:20 pm

Its the recursive movement action slowing everything down.
I would ditch that action and make my own. Do a search for recursive to see how I acheive the same thing.
Check electricBeats Zeplin popper WIp to see how I made his game more efficient using my recursive movement system.

My way is not the best way or the correct way but it works!
If you do not like my post, PM me to let me know and I will edit it.
Available to program your game.(not help you program it)
PM me your proposals. I want to see graphics and story as a minimum.

My Scratch Page: http://scratch.mit.edu/users/Eldude
Image
User avatar
Eldude
 
Posts: 5795
Joined: Thu Jun 26, 2008 9:46 pm
Location: A good place!
Current Project: Coding for one of you!

Re: star shooter

Postby Nirraic » Mon Oct 05, 2009 5:37 pm

hey eldude is this the thread you are talking about? viewtopic.php?f=27&t=2344" onclick="window.open(this.href);return false;" onclick="window.open(this.href);return false;

if so it's set out for the y axis i tried to set it out to the x axis but it was a fail, i know that your probably busy but can you set it out for the x axis for me I've been up all night (it's 3:33 am in Sydney at the moment) trying to get it to work but I've had no luck. so can you please have a go at it.


never mind i looked further into the thread and found James had posted the x-axis code, it worked out well all i need to know now is how do i change the distance it moves i tried changing the if x < 81 to a lower number like 1 and if x > 161 to a higher number like 224 but it just made the sprite stand still

if you can, can you post how to increase/ decrease the distance it travel.
thanks for all the help that you have done

here is the .nds that I've just added the code in.
Attachments
StarShooter recuritive motion test eldude.nds
(397.56 KiB) Downloaded 9 times
User avatar
Nirraic
 
Posts: 568
Joined: Sat Oct 03, 2009 2:17 am
Location: Sydeny, Australia
Current Project: a music game (no title)

Re: star shooter

Postby Eldude » Tue Oct 06, 2009 3:36 am

Its really not that hard.

Code: Select all
Declare Room Global rx;s16;0
Declare Room Global xvec;s16;0
Declare Room Global speed;s8;1
Set Variable rx;rx + xvec
Set Sprite X 1;0;rx
If rx < 1
Set Variable xvec;+ speed
End If
If rx > 224
Set Variable xvec;- speed
End If
If you do not like my post, PM me to let me know and I will edit it.
Available to program your game.(not help you program it)
PM me your proposals. I want to see graphics and story as a minimum.

My Scratch Page: http://scratch.mit.edu/users/Eldude
Image
User avatar
Eldude
 
Posts: 5795
Joined: Thu Jun 26, 2008 9:46 pm
Location: A good place!
Current Project: Coding for one of you!

Re: star shooter

Postby Nirraic » Tue Oct 06, 2009 7:53 am

i've already tried that and it did not work here is a screen shot of it and .nds file is the compile after i added the distance changes.
i use xc and the variable name.



if you need the .xds file then just ask
thanks.
Attachments
problem.PNG
StarShooter recuritive motion test eldude2.nds
with
if xc < 1
and if xc > 224
(397.06 KiB) Downloaded 8 times
User avatar
Nirraic
 
Posts: 568
Joined: Sat Oct 03, 2009 2:17 am
Location: Sydeny, Australia
Current Project: a music game (no title)

Re: star shooter

Postby Mozzie » Tue Oct 06, 2009 9:14 am

Cool UFO's Arent Moving For what i see
Last edited by Mozzie on Tue Oct 06, 2009 10:31 pm, edited 1 time in total.
Mozzie
 

Re: star shooter

Postby Nirraic » Tue Oct 06, 2009 9:44 am

Mozzie wrote:col but he ufos aint movin


go up a bit and dl beta version 0.14.nds

the latest ones I've uploaded has a code that eldude created so i was asking about troubleshooting.

also write in proper English or use acronyms that everyone knows about it makes it easier to understand.
User avatar
Nirraic
 
Posts: 568
Joined: Sat Oct 03, 2009 2:17 am
Location: Sydeny, Australia
Current Project: a music game (no title)

Re: star shooter

Postby Eldude » Tue Oct 06, 2009 10:33 am

No my fault you cannot coppy examples.

Apart from the variable names, yours does not look like mine.
If you do not like my post, PM me to let me know and I will edit it.
Available to program your game.(not help you program it)
PM me your proposals. I want to see graphics and story as a minimum.

My Scratch Page: http://scratch.mit.edu/users/Eldude
Image
User avatar
Eldude
 
Posts: 5795
Joined: Thu Jun 26, 2008 9:46 pm
Location: A good place!
Current Project: Coding for one of you!

Re: star shooter

Postby Nirraic » Wed Oct 07, 2009 7:25 am

sorry about that eldude i was not looking properly (probably tired at the time)

i added those changes in but i could not get them to move separately so i added more sprites and made it like the space invaders sprite set up.

hey does anyone knows what code selection i would need to create an Ai to allow bullets to come out of the ufos to come down and hit the ship

here is the latest version
tell me what you think about it.
Attachments
StarShooter beta version 0.15.nds
latest version 7/October/2009 12:30 pm
(413.56 KiB) Downloaded 19 times
User avatar
Nirraic
 
Posts: 568
Joined: Sat Oct 03, 2009 2:17 am
Location: Sydeny, Australia
Current Project: a music game (no title)

Re: star shooter

Postby Eldude » Wed Oct 07, 2009 2:11 pm

It looks great and plays real smooth.
If you want to go back to your original concept just let me know.
I had a look at your old .xds but it does not seem to have the starting co'ordinates of the spaceship sprites so I couldn't do it from that example.

Did you take the sprites off the scrren before you posted the .xds?
If you do not like my post, PM me to let me know and I will edit it.
Available to program your game.(not help you program it)
PM me your proposals. I want to see graphics and story as a minimum.

My Scratch Page: http://scratch.mit.edu/users/Eldude
Image
User avatar
Eldude
 
Posts: 5795
Joined: Thu Jun 26, 2008 9:46 pm
Location: A good place!
Current Project: Coding for one of you!

Next

Return to Work In Progress

Who is online

Users browsing this forum: No registered users and 1 guest