InkBlotter Posted December 1, 2013 Share Posted December 1, 2013 First post, first game. I started batari basic very recently. I downloaded all the examples, and they were awesome early on, until I started getting into missiles, where the code confused me, and everything started seeming more cryptic. The pinned example is weird considering I have to hold down the fire button to get the missile to fire, and I cannot figure out how to fix it. Using another example, I've gotten collision detection and movement for my player sprite to work, but the missile eludes me. I need it to fire straight down and only stop when it hits something else. Help, please? Extraterrestrial.bas Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted December 1, 2013 Share Posted December 1, 2013 In the file that you posted, which direction do you want the missile to go? Quote Link to comment Share on other sites More sharing options...
InkBlotter Posted December 1, 2013 Author Share Posted December 1, 2013 I need it to go straight downwards until it hits the playfield. Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted December 1, 2013 Share Posted December 1, 2013 I need it to go straight downwards until it hits the playfield. I wasn't sure before I got your answer, so I started doing one shooting to the right, then one shooting down. Here are both: Shooting Right extraterrestrial_shoot_right_2013y_12m_01d_1213t.bas extraterrestrial_shoot_right_2013y_12m_01d_1213t.bin Shooting Down extraterrestrial_shoot_down_2013y_12m_01d_1222t.bas extraterrestrial_shoot_down_2013y_12m_01d_1222t.bin Quote Link to comment Share on other sites More sharing options...
InkBlotter Posted December 1, 2013 Author Share Posted December 1, 2013 Oh golly, it works better than ever. Exact collision detection, screenedge detection, and the missile works perfect. Thank you so so so so much. I will study this code obsessively. The screenedge finally makes perfect sense to me. Thank you for your help. Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted December 2, 2013 Share Posted December 2, 2013 Oh golly, it works better than ever. Exact collision detection, screenedge detection, and the missile works perfect. I got rid of collision detection in the two versions that I posted since you didn't seem to need it. I just stopped the ship and the missile from going down that far. Quote Link to comment 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.