waderain Posted October 16, 2018 Share Posted October 16, 2018 I know using NUSIZ0, NUSIZ1 can give me 2 or 3 copies of a player and missile but is there a way just to make copies of the missile and not the player? Quote Link to comment https://forums.atariage.com/topic/284042-more-than-one-missile-question/ Share on other sites More sharing options...
+Karl G Posted October 16, 2018 Share Posted October 16, 2018 Unfortunately not. Ditto with color. They are controlled by the same register. Quote Link to comment https://forums.atariage.com/topic/284042-more-than-one-missile-question/#findComment-4134996 Share on other sites More sharing options...
Coolcrab Posted October 16, 2018 Share Posted October 16, 2018 You can probably hack it in with assembly somehow depending on how the game looks. Like if you have a space invaders like setting you could set NUSIZ0 to different values above scanline X and to something else below it. But that would limit the move space of your character. (Not sure if you can change something like that after like half a scanline if you want the game to be flipped 90 deg.) I'm not an assembly wizard like others here, so they can probably call out my BS or give a magical script. But I think any possible fix will be very specific so explaining your game might help. Quote Link to comment https://forums.atariage.com/topic/284042-more-than-one-missile-question/#findComment-4135010 Share on other sites More sharing options...
orange808 Posted October 16, 2018 Share Posted October 16, 2018 (edited) Flicker them. Your bigger issue may be finding enough variables to keep track of all the missiles you create and to implement reliable collisions. You should be able to get six missiles from the ball, missile0, and missile1. Use a byte as a counter and let it increment and roll over. The first bit will toggle on and off each frame. Use that to draw the missiles in different locations each frame. You will need to make considerations for this when you detect collisions, but it can be managed. if fooCounter{0} then misslex = foo : missiley = foo else misslex = bar : missley = bar Edited October 16, 2018 by orange808 Quote Link to comment https://forums.atariage.com/topic/284042-more-than-one-missile-question/#findComment-4135095 Share on other sites More sharing options...
waderain Posted October 16, 2018 Author Share Posted October 16, 2018 (edited) Flicker them. Your bigger issue may be finding enough variables to keep track of all the missiles you create and to implement reliable collisions. You should be able to get six missiles from the ball, missile0, and missile1. Use a byte as a counter and let it increment and roll over. The first bit will toggle on and off each frame. Use that to draw the missiles in different locations each frame. You will need to make considerations for this when you detect collisions, but it can be managed. if fooCounter{0} then misslex = foo : missiley = foo else misslex = bar : missley = bar What I'm wanting to have is 5 vertical lines spaced out to make 4 tracks along the left side of the screen. I'm planing on using the multi sprite kernel so I can have more than two sprites but I don't want the play field mirrored A missile looks great with a height of 80 or so, it's nice and thin looking. I've tried flickering them but it's really annoying. Just thought maybe someone had a good trick to achieve this Edited October 16, 2018 by waderain Quote Link to comment https://forums.atariage.com/topic/284042-more-than-one-missile-question/#findComment-4135125 Share on other sites More sharing options...
Coolcrab Posted October 17, 2018 Share Posted October 17, 2018 Try the icing on a cake effect http://atariage.com/forums/topic/283446-simple-horizontal-shooter-wip/ Quote Link to comment https://forums.atariage.com/topic/284042-more-than-one-missile-question/#findComment-4135349 Share on other sites More sharing options...
+Gemintronic Posted October 18, 2018 Share Posted October 18, 2018 I have the source code to a game called M.M.S.B.C. 2 here: http://atariage.com/forums/topic/207626-mmsbc-2-done/ It's not an example per se but it does showcase using missiles as player ships. It also timeshares the ball as a projectile for both players. It also manages to have different colors for the virtual projectiles even though it's the ball. Basically, it swaps a bluish color with a reddish color. This messes with the playfield color BUT you don't notice it so much because your eyes resolve it down to grey. Quote Link to comment https://forums.atariage.com/topic/284042-more-than-one-missile-question/#findComment-4136371 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.