Jump to content
IGNORED

Multi-color sprite problem


boski

Recommended Posts

I just started batari basic a few weeks ago, and I can't figure this one out. I'm trying to create a multicolor sprite, but it always comes out all black. I've tried rearranging the commands, but the result is always the same. Here's my most recent code:

 

player0:

%00011100

%00011000

%00111100

%00111110

%00111100

%00111000

%00011000

%00011000

end

 

player0x=45

player0y=60

 

Main

 

 

COLUBK=$EE

 

player0color:

$40

$D0

$D0

$5E

$5E

$5E

$2E

$2E

end

 

drawscreen

goto Main

 

 

Also, I can't figure out the "set kernel multisprite" command. I never get an error message, but only two large sprites and an enlarged portion of the playfield show up in the emulator.

 

Thank you anyone for any help!

Link to comment
Share on other sites

I just started batari basic a few weeks ago, and I can't figure this one out. I'm trying to create a multicolor sprite, but it always comes out all black. I've tried rearranging the commands, but the result is always the same. Here's my most recent code:

 

  player0:
  %00011100
  %00011000
  %00111100
  %00111110
  %00111100
  %00111000
  %00011000
  %00011000
end

  player0x=45
  player0y=60

Main_Loop


  COLUBK=$EE

  player0color:
  $40
  $D0
  $D0
  $5E
  $5E
  $5E
  $2E
  $2E
end

  drawscreen

  goto Main_Loop

Here's one way you can do it:

 

 

  set kernel_options player1colors

  player1:
  %00011100
  %00011000
  %00111100
  %00111110
  %00111100
  %00111000
  %00011000
  %00011000
end

  player1x=45
  player1y=60





Main_Loop


  COLUBK=$EE

  player1color:
  $40
  $D0
  $D0
  $5E
  $5E
  $5E
  $2E
  $2E
end

  drawscreen

  goto Main_Loop

Click on the link below for more information:

 

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

 

 

 

 

Also, I can't figure out the "set kernel multisprite" command. I never get an error message, but only two large sprites and an enlarged portion of the playfield show up in the emulator.

First thing I'd do is search the bB forum for Multisprite programs that people have posted and look at their code.

Link to comment
Share on other sites

  • 4 years later...

In using the multi color sprite kernel (both players) is it possible to toggle it off then back on so I could use the missiles?

 

For example, write the code to make the sprite one solid color when a missile is fired, then once the missile clears, go back to multi colors?

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...