endrien Posted August 30, 2010 Share Posted August 30, 2010 (edited) 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 August 30, 2010 by endrien Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted August 30, 2010 Share Posted August 30, 2010 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. Quote Link to comment Share on other sites More sharing options...
TooSlowGamer Posted August 30, 2010 Share Posted August 30, 2010 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. Quote Link to comment Share on other sites More sharing options...
Cliff Friedel Posted August 30, 2010 Share Posted August 30, 2010 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 Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted August 31, 2010 Share Posted August 31, 2010 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. Quote Link to comment Share on other sites More sharing options...
endrien Posted August 31, 2010 Author Share Posted August 31, 2010 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. Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted August 31, 2010 Share Posted August 31, 2010 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. 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.