WizardBone Posted October 3, 2016 Share Posted October 3, 2016 (edited) 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 October 3, 2016 by WizardBone Quote Link to comment Share on other sites More sharing options...
gauauu Posted October 3, 2016 Share Posted October 3, 2016 You'd probably have more luck asking in the dedicated bb forum. This forum tends to be more focused on assembly programming. 1 Quote Link to comment Share on other sites More sharing options...
WizardBone Posted October 3, 2016 Author Share Posted October 3, 2016 (edited) 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 October 3, 2016 by WizardBone Quote Link to comment Share on other sites More sharing options...
Papa Posted October 3, 2016 Share Posted October 3, 2016 I can help with this by the by. Quote Link to comment Share on other sites More sharing options...
WizardBone Posted October 4, 2016 Author Share Posted October 4, 2016 (edited) 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 October 4, 2016 by WizardBone Quote Link to comment Share on other sites More sharing options...
Papa Posted October 4, 2016 Share Posted October 4, 2016 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! Quote Link to comment Share on other sites More sharing options...
WizardBone Posted October 4, 2016 Author Share Posted October 4, 2016 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. 1 Quote Link to comment Share on other sites More sharing options...
MayDay Posted January 13, 2017 Share Posted January 13, 2017 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. Quote Link to comment Share on other sites More sharing options...
eshu Posted January 13, 2017 Share Posted January 13, 2017 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/forums/topic/250014-tiatracker-a-new-sound-routine-and-sequencer-application/ 1 Quote Link to comment Share on other sites More sharing options...
MayDay Posted January 14, 2017 Share Posted January 14, 2017 Have you looked at TIA Tracker? - http://atariage.com/forums/topic/250014-tiatracker-a-new-sound-routine-and-sequencer-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. 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.