Jump to content
Sign in to follow this  
endrien

Can't get enemy to show

Recommended Posts

I'm trying to add an enemy to a screen and I can't get it to show, in fact it just makes my screen go black? I set the enemy as player2.

Also whats the maximum number of enemies to have on screen at one time(not counting your character)?

 

Code attached

mainc_1.bas

Edited by endrien

Share this post


Link to post
Share on other sites
I set the enemy as player2.

Without looking at your code, if you really set the enemy as player2, that's your problem. If you're using the default kernel, there's player0 and player1.

 

If you want more than two sprites, you either need to use flicker or the Multisprite Kernel.

Share this post


Link to post
Share on other sites

Well, I tried to compile the code and I got a bunch of problems.

 

It says that the following things weren't ever stated in the program:

 

player2height

player2x

player2y

player2pointerlo

player2pointerhi

 

Also, the default is two players (sprites) on screen at once. So that would mean you and one enemy. There are several ways around that, such as the Multisprite kernel or replicating one sprite over.

Share this post


Link to post
Share on other sites
I set the enemy as player2.

Without looking at your code, if you really set the enemy as player2, that's your problem. If you're using the default kernel, there's player0 and player1.

 

If you want more than two sprites, you either need to use flicker or the Multisprite Kernel.

 

Is there a way to use flicker in BB? If so, do you know any games that use it? I am just curious. Never saw it on your page.

 

Cliff

Share this post


Link to post
Share on other sites
Is there a way to use flicker in BB? If so, do you know any games that use it? I am just curious. Never saw it on your page.

Look for works in progress posted by jrok. I don't think he has posted a 30 hz flicker tutorial yet, but maybe he'll do that when he gets a chance.

Share this post


Link to post
Share on other sites
I set the enemy as player2.

Without looking at your code, if you really set the enemy as player2, that's your problem. If you're using the default kernel, there's player0 and player1.

 

If you want more than two sprites, you either need to use flicker or the Multisprite Kernel.

 

Hmmm, could you explain this a bit more? I believe the way my code currently is, it uses p0 for something else.

 

Well, I tried to compile the code and I got a bunch of problems.

 

It says that the following things weren't ever stated in the program:

 

player2height

player2x

player2y

player2pointerlo

player2pointerhi

 

Also, the default is two players (sprites) on screen at once. So that would mean you and one enemy. There are several ways around that, such as the Multisprite kernel or replicating one sprite over.

 

The code compiles for me, just gives a black screen when ran. Player2 x/y is stated in the program.

Share this post


Link to post
Share on other sites
Hmmm, could you explain this a bit more? I believe the way my code currently is, it uses p0 for something else.

Take a look at the bB page:

 

http://www.randomterrain.com/atari-2600-memories-batari-basic-commands.html#objects

 

Read that section and you'll see what I'm talking about.

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.

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...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...