STGraves Posted November 26, 2015 Share Posted November 26, 2015 Hi, it's me again, I'm gonna use this thread to post and ask any question I have, like this one: Can anyone explain me how does the color flickering on a sprite works and if it's possible?, thanks. Quote Link to comment Share on other sites More sharing options...
DarkCart Posted November 26, 2015 Share Posted November 26, 2015 Wait. Do you want the sprite to flicker? Or am I misreading your post. Quote Link to comment Share on other sites More sharing options...
STGraves Posted November 26, 2015 Author Share Posted November 26, 2015 Sort of, I remember some time ago a user told me that thanks to the flicker the character could have more colors, kind of like overlapping two sprites to make one with the colors of both combined. Quote Link to comment Share on other sites More sharing options...
DarkCart Posted November 26, 2015 Share Posted November 26, 2015 (edited) Sort of, I remember some time ago a user told me that thanks to the flicker the character could have more colors, kind of like overlapping two sprites to make one with the colors of both combined. Ok, that makes sense. Before you go nuts trying to blend colors, keep in mind that the flicker for Atari isn't very fast (sluggish processor?), and also keep in mind that you have all these colors at your disposal. Edited November 26, 2015 by DarkCart Quote Link to comment Share on other sites More sharing options...
STGraves Posted November 26, 2015 Author Share Posted November 26, 2015 Yeah I'm aware of that, and honestly I don't mind that, if I can get multicolored sprites it's awesome. Quote Link to comment Share on other sites More sharing options...
DarkCart Posted November 26, 2015 Share Posted November 26, 2015 The way I see it, what you'd do is this Draw all the things that need to be red, for instance. This is sprite 0. Draw all the things that need to be blue, for instance again. This is sprite 1. Make the x and y of both sprites align to each other Quote Link to comment Share on other sites More sharing options...
STGraves Posted November 26, 2015 Author Share Posted November 26, 2015 Yes exactly like that. Quote Link to comment Share on other sites More sharing options...
DarkCart Posted November 26, 2015 Share Posted November 26, 2015 I assume you're using batari Basic? Quote Link to comment Share on other sites More sharing options...
STGraves Posted November 26, 2015 Author Share Posted November 26, 2015 Yep Quote Link to comment Share on other sites More sharing options...
DarkCart Posted November 26, 2015 Share Posted November 26, 2015 I'll lay it out step by step then 1. Create 2 sprites, color in what needs to be (insert color here) 2. In the default.bas, set player0color to the first color, set player1color to second color 3. Set player0x, player0y, player1x, and player1y to the same value (50 for example) 4. When the joystick is pressed up, update not only player0y but also player1y. Do this for down, left, and right. 5. This multicolor sprite will NOT flicker, but any subsequent sprites will. Quote Link to comment Share on other sites More sharing options...
STGraves Posted November 26, 2015 Author Share Posted November 26, 2015 So basically if I do it with bB it'll be a one player game only? Quote Link to comment Share on other sites More sharing options...
DarkCart Posted November 26, 2015 Share Posted November 26, 2015 More or less. Quote Link to comment Share on other sites More sharing options...
DarkCart Posted November 27, 2015 Share Posted November 27, 2015 Well, actually, I take that back. It wouldn't be one player, you'd still have balls and missiles to mess around with. Quote Link to comment Share on other sites More sharing options...
STGraves Posted November 27, 2015 Author Share Posted November 27, 2015 Yeah, I actually forgot about that, it's just that I dunno how to use them as the enemy, I'm aware it can be done but I don't know how xD Quote Link to comment Share on other sites More sharing options...
DarkCart Posted November 27, 2015 Share Posted November 27, 2015 "Multicolored sprite against ball that shoots lasers of deaaaaaaaaaaaath" Quote Link to comment Share on other sites More sharing options...
STGraves Posted November 27, 2015 Author Share Posted November 27, 2015 Hahaha, but I don't have any missiles available xD, I'm using multicolored sprites Quote Link to comment Share on other sites More sharing options...
DarkCart Posted November 27, 2015 Share Posted November 27, 2015 Hmm. With that, arises a question. Do you value color over functionality? Quote Link to comment Share on other sites More sharing options...
STGraves Posted November 27, 2015 Author Share Posted November 27, 2015 Yes, although not quite, I do love having fully colored sprites, but I don't know if it's worth to cut down that much of functionality, here is a test of what I accomplished though.http://atariage.com/forums/topic/246130-fully-colored-sprites/ Quote Link to comment Share on other sites More sharing options...
STGraves Posted November 27, 2015 Author Share Posted November 27, 2015 What I could sacrifice though is the pfscroll thing, but not the colors, so multisprite kernel is out of the question. Quote Link to comment Share on other sites More sharing options...
DarkCart Posted November 27, 2015 Share Posted November 27, 2015 That tech demo looked good. I must ask, how'd you get 3 (or was it 4?) colors? The way I described it would only work for 2. If bB worked on my Mac, I wouldn't have to ask, but bB has some... issues with my Mac. Quote Link to comment Share on other sites More sharing options...
iesposta Posted November 27, 2015 Share Posted November 27, 2015 Just creatively change the color going down like this. Ok, well this is player0 and player1 side-by-side, but you get the idea? If you are talking about using the same player alternating like D.K. VCS, then you really should only have "2" per horizontal, and even then they will be transparent due to flickering both players in 2 places, (although the overlap can create a third color - see fireballs): Search for "flickerpicker" to see what the third color of the two overlapping colors make. Note: It doesn't really follow "yellow and blue make green". 2 Quote Link to comment Share on other sites More sharing options...
STGraves Posted December 3, 2015 Author Share Posted December 3, 2015 I have a new question, how does pfread work?, like what is the information you put in the parenthesis, coordinates? Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted December 3, 2015 Share Posted December 3, 2015 I have a new question, how does pfread work?, like what is the information you put in the parenthesis, coordinates? I just updated that section. See if this is any better: randomterrain.com/atari-2600-memories-batari-basic-commands.html#pfread I should probably add a little example program to that section. What kind of simple program would you want to see there? Quote Link to comment Share on other sites More sharing options...
STGraves Posted December 3, 2015 Author Share Posted December 3, 2015 So xpos it's the coordibates in the x axis and ypos the ones in the y axis?, or the actual coordinates of a specific pixel from the playfield? Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted December 3, 2015 Share Posted December 3, 2015 So xpos it's the coordibates in the x axis and ypos the ones in the y axis?, or the actual coordinates of a specific pixel from the playfield? It's similar to pfpixel, but instead of drawing or erasing or flipping a playfield pixel, you are looking to see if a playfield pixel is there. If you know how to use pfpixel, you know how to use pfread. 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.