Jump to content

Photo

Help an artist animate a double sprite

sprite multi animation

9 replies to this topic

#1 WizardBone OFFLINE  

WizardBone

    Space Invader

  • 19 posts

Posted Sun Oct 2, 2016 6:42 PM

Hey guys, I am not a programmer by any means.I was experimenting with visual bb and decided to make a sprite using both player sprites. I am now wondering if anyone would be willing to show me a code where I can combine both sprites as one. My first goal is to combine both sprites and then hopefully add some code so I can design a walk cycle. Anyone willing to share an animated double sprite code to an artist?I just wanna create art, I wish I understand programming. I provided art example below, I'm sure it will be nice to see if someone was willing to help out. My next step is walk cycle if someone can help with the code.  

 

I've seen this code for flicking, but I am not sure how to use it or write it in a code for my character. Assuming flicker is best. My understanding is, it allows you to use one player sprite instead of two?

 


frame1
   player0x = x
   gosub ShowLeftSide
   goto frame2

frame2
   player0x = x + 8
   gosub ShowRightSide
   goto frame1

 

 

Art

 player0:
 %01011010
 %00110100
 %00101000
 %00110000
 %00011000
 %00110000
 %00110000
 %00110000
 %01010000
 %11100000
 %01000000
 %00000000
 %10101010
 %11111111
 %00000001
 %10110110
 %01011000
 %01010000
 %01100000
 %11000000
 %10000000
 %10000000
 %11100000
 %10000000




 player0:
 %10110000
 %01011000
 %00111000
 %00011000
 %00110000
 %00011000
 %00011000
 %00010100
 %00001100
 %00001110
 %00110111
 %01001011
 %01010000
 %01101111
 %01011111
 %01011000
 %01011101
 %01011101
 %01011011
 %01100110
 %00111001
 %00000011
 %00000011
 %00000001

Edited by WizardBone, Sun Oct 2, 2016 7:18 PM.


#2 gauauu OFFLINE  

gauauu

    Chopper Commander

  • 217 posts
  • Location:Illinois

Posted Mon Oct 3, 2016 9:04 AM

You'd probably have more luck asking in the dedicated bb forum.   This forum tends to be more focused on assembly programming.



#3 WizardBone OFFLINE  

WizardBone

    Space Invader

  • Topic Starter
  • 19 posts

Posted Mon Oct 3, 2016 9:30 AM

Thanks for replying. I will do so once I get back home!

 

Edit: Seems this is probably the wrong place to ask, Is there a way to delete this topic? I dont see it anywhere lol. 


Edited by WizardBone, Mon Oct 3, 2016 10:37 AM.


#4 Papa OFFLINE  

Papa

    Dragonstomper

  • 727 posts
  • Shattered
  • Location:Scorched Ithaca (BC)..

Posted Mon Oct 3, 2016 11:17 AM

I can help with this by the by.



#5 WizardBone OFFLINE  

WizardBone

    Space Invader

  • Topic Starter
  • 19 posts

Posted Mon Oct 3, 2016 7:16 PM

Oh sweet, that would be great!. Any help is welcome lol

I really have no idea about writing the code. Would you be interested in helping with that?


Edited by WizardBone, Mon Oct 3, 2016 7:18 PM.


#6 Papa OFFLINE  

Papa

    Dragonstomper

  • 727 posts
  • Shattered
  • Location:Scorched Ithaca (BC)..

Posted Tue Oct 4, 2016 9:57 AM

I can help you learn to write code.  It's fun and easy.  For instance, the code above seems like it doesn't need the second label (Frame 2) because the code will run to the next line with or without the label.  Maybe later you would add drawscreen to paint the picture for each frame and this would use that extra label.  When I draw two sprites at once to make one big sprite with two color definitions I have two instances of drawscreen happening.  If you do this with both sprites then you can have two sprites made of two sprites each.  I think of 'tiles' like what sixteen bit programming would use and this is basically a caveman way to get two color coded tiles at once.  Once you are drawing many sprites like this it gets all flickery and messy.

 

My style of coding revolves around controlling timers and counters with variables.  I am an artist first and a mathematical programmer second.  I am not interested in using sine code to make mathematical fruitiness happen magically in 2k!  I use up space, bankswitch, and aim for the TOP.  In cartridge creation the fattest, easiest chunk to make Atari VCS games in is 32k with the standard kernel (VisualBatariBasic, I'm not ready to help out VWBasic users, YET!).  People pass around ideas about makeshift 256k carts and stuff.  That is cute but probably expensive.  If you want to make a game with the DPC+ kernel you will have more options but the cart will be more costly as it uses an ARM processor.  You don't have to bankswitch and the game would then be very small.

 

I program my own games all the time, too (Sega, Atari, PC, etc..). So, just 'handling' all the code for someone else is probably not possible for me.

 

I wouldn't mind conversing via PM where I could give backup BASIC code from projects I've worked on to look over.  There is a wealth of knowledge right here, though.  The funnest and easiest way to do music, for instance, I learned right here on the forum.  The DPC+ startup that RT made (after you get the jist of programming) is like a little assembly line (pun intended) for popping out games! 



#7 WizardBone OFFLINE  

WizardBone

    Space Invader

  • Topic Starter
  • 19 posts

Posted Tue Oct 4, 2016 11:44 AM

I would love to learn, rather than someone do it for me. But right now i know NOTHING haha. So a few examples from your past projects may go a long ways! I'll PM you now. for a better convo. 



#8 MayDay OFFLINE  

MayDay

    Moonsweeper

  • 250 posts

Posted Fri Jan 13, 2017 11:43 AM

The funnest and easiest way to do music, for instance, I learned right here on the forum.


I've been looking for info on music- can you please elaborate? I've found the sound maker webpage that plays sound and generates code snippets. I also tried to get VBB running, but havent figured out how to make something and then be able to play it back. Basically, looking for code that had two channels where I can do the (4) pure sounds in one and the (12) Lower Pure in the other. I can then experiment, but would like to be able to change values for note, length, volume, and how to leave spaces. If I could figure out the code part, I could assemble it and play back in an emulator.

#9 eshu OFFLINE  

eshu

    Moonsweeper

  • 281 posts

Posted Fri Jan 13, 2017 5:19 PM

I've been looking for info on music- can you please elaborate? I've found the sound maker webpage that plays sound and generates code snippets. I also tried to get VBB running, but havent figured out how to make something and then be able to play it back. Basically, looking for code that had two channels where I can do the (4) pure sounds in one and the (12) Lower Pure in the other. I can then experiment, but would like to be able to change values for note, length, volume, and how to leave spaces. If I could figure out the code part, I could assemble it and play back in an emulator.

 

Have you looked at TIA Tracker? - http://atariage.com/...er-application/



#10 MayDay OFFLINE  

MayDay

    Moonsweeper

  • 250 posts

Posted Fri Jan 13, 2017 9:06 PM

 

Have you looked at TIA Tracker? - http://atariage.com/...er-application/

 

I had not seen that, thanks.  I have it installed, and am playing around with it, will see what I can come up with.







Also tagged with one or more of these keywords: sprite, multi, animation

0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users