Jump to content
IGNORED

NUSIZ3{3} = 1 Trouble


Captain Spazer

Recommended Posts

I'm having a little bit of trouble with my multisprite game, I noticed sprites can't be flipped the normal way and I tried using

NUSIZ3{3} = 1

But the sprite dosn't flip. What gives?

 rem makes the sprite bigger 
NUSIZ3=$07


 rem makes the boar move
 if p=0 then player3x=140 : p=2
 if p=2 then NUSIZ3{3} = 0 : _P3_L_R=_P3_L_R-1.00
 if p=1 then player3x=5 : p=3
 if p=3 then NUSIZ3{3} = 1 : _P3_L_R=_P3_L_R+1.00
Link to comment
Share on other sites

Captain Spazer,

 

For DPC+ I used the following in my program.

 

rem flip sprite left and right
dim _Bit2_Flip_p1 = var5
dim _Bit3_Flip_p0 = var5

 

rem player movement
if joy0left then player0x = player0x - 1 : _Bit3_Flip_p0{3} = 1 : _Bit2_Flip_p1{2} = 1
if joy0right then player0x = player0x + 1 : _Bit3_Flip_p0{3} = 0 : _Bit2_Flip_p1{2} = 0

 

It can be modified for player1-9 as well. Hope this helps, thanks.

Edited by Lewis2907
  • Like 1
Link to comment
Share on other sites

Captain Spazer,

 

I used the following for DPC+

 

rem animation of squid
_aminate=_aminate+1
if _aminate = 23 then _aminate = 1
if _aminate = 5 then gosub __Squid1 bank6 : gosub __Swim1 bank5 : gosub __Shark1 bank6
if _aminate = 10 then gosub __Squid2 bank6 : gosub __Swim2 bank5 : gosub __Shark2 bank6
if _aminate = 15 then gosub __Squid3 bank6 : gosub __Swim1 bank5 : gosub __Shark3 bank6
if _aminate = 20 then gosub __Squid4 bank6 : gosub __Swim2 bank5 : gosub __Shark4 bank6
NUSIZ1 = $14

 

Basically from what I understand the NUSIZ1 = $14 will affect the shark. I attached the Save_Earth game I was making. Basically what I did was compiled everyone's code I could find on Bb to learn on my own. I'm still not as good as the other's like RT, Mountain King, PacMan Red etc. but it got me going.

 

Also http://www.randomterrain.com/atari-2600-memories-batari-basic-commands.html#nusiz explains more on how to use this. Hope this help, thanks.

Save Earth - 22 Aug 16 - DPC+.txt

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