Jump to content
IGNORED

Missile trouble


InkBlotter

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...