Jump to content
IGNORED

animation problem


gambler172

Recommended Posts

I see a number of potential problems:

 

1. The structure of your code is a bit strange. You're declaring the sprite data after it's being used, for instance. That's a bit unusual, though I don't know if it will actually cause problems. Also, you have a clearscreen as the last command, but no drawscreen.

 

2. There is no loop. I suspect that things seem to be working only because your game reaches the end of the cartridge, then resets.

 

3. You're using two plotsprites, when you really only want one (if I understand correctly). I assume that you're trying to flicker between the joker and a number 7, correct?

 

If 3 is correct and that's what you're trying to do, try this instead:

 displaymode 320A
 set doublewide on
 rem **background color...
 BACKGRND=$12

 rem **set the height of characters and sprites...
 set zoneheight 8

 rem **import the characterset png...
 incgraphic atascii.png 320A 

 rem **set color of 320A text palette 0...
 P0C2=$0F

 rem **set the current character set...
 characterset atascii

 rem **set the letters represent each graphic character...
 alphachars ASCII
  
 dim frame=j
 dim animation=l
 incgraphic seven.png 320A
 incgraphic joker.png 320A 
__Main_Loop
 clearscreen
 frame=frame+1
 animation=(frame/16)&1 
 plotsprite seven 0 10 11 animation
 drawscreen
 goto __Main_Loop
 

slots.bas

slots.bas.a78

  • Like 2
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...