Jump to content
Sign in to follow this  

enemies shooting

Recommended Posts

i am in the process of making a game and well i don't know how to make an enemy shoot i only want the enemy to shoot down and up according to player 0's y position can any one help?

Edited by goofyblocks

Share this post

Link to post
Share on other sites

There's more guys programming using batari BASIC in the section here:



Usually people like to use the Atari 2600 missiles for shots. These are generally called missile0 and missile1. You can change their location on the screen via missile0x and missile0y for the first missile. missile1x and missile1y for the second missile (missile1).


So, if I wanted the first missile 44 pixels to the right and 55 pixels down I would set the missiles coordinates like this:


missile0x = 44

missile0y = 55


You wont see this change until you tell batari BASIC to paint the screen:




My last piece of advice is read the batari BASIC command reference web page. I use it literally every few minutes. Basically, I read how to do something, try it and then find another thing I want to do and read that!


  • Like 2

Share this post

Link to post
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.

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.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...