Jump to content

ChilePepper

New Members
  • Content Count

    26
  • Joined

  • Last visited

Posts posted by ChilePepper


  1. I ask you guys a lot of questions, and I am grateful for all of your help. Sometimes when I'm giving the game I'm working on a test run, after playing around for a bit, the screen turns blue and it flickers a bunch with random chunks of black lines flying everywhere. I was just wondering what this means, am I using up to much RAM? Or something else? Thanks.


  2. Okay thanks. So here's what I did:

     

    dim rand16 = a

    temp1 = rand16

     

    there is still a pattern but its less noticeable. In the thread that he posted earlier, TwentySixHundred talked about how the numbers seemed to be hugging a certain area more than others. I think that is happening here as well perhaps? So how would I fix that with the rand16? Thanks again.

    -ChilePepper


  3. Thanks Bogax, your suggestion was what I was looking for. However, like TwentySixHundred was saying, rand is not very random, I am seeing patterns, so I'll be sure to check out that thread TSH was talking about. Thanks guys.

    • Like 1

  4. Sorry, but either I'm not understand you or you guys aren't understanding me. Here's a code example. If you compile and run this program you'll notice that even though your pressing fire, the number on screen won't change, because instead of generating a new number, the 'random' function is just using the same number as before. So my question is how do I make it so it generates a new number each time? Thanks again.

    default.bas


  5. Hello, I have a question regarding the rand function. I looked at bB Commands page, but I couldn't find anything. (Maybe I'm not looking hard enough) But if in the program I call the rand function-thing, it will generate a random number. But if I call it later, instead of generating a new number, it just does the same number. How would I make it reset, so to speak. Thanks,

    -ChilePepper


  6. Hey folks. I have a question concerning playfields. As you can see there is a file attached to this post, download it and run it in Stella. Notice how the part of the playfield on the y axis has little spaces in between the different pixels, but the x axis doesn't? Is there a way to fix this? Or is it just something I'll have to deal with? As always, any help would be appreciated, thanks. 

    default.bas.bin


  7. this is what i got: 

     

     dim p1y = player1y.p
     dim p1x = player1x.p

     if player1y < player0y then p1y = p1y + 0.5
     if player1y > player0y then p1y = p1y - 0.5
     if player1x < player0x then p1x = p1x + 0.5
     if player1x > player0x then p1x = p1x - 0.5

     

    still moving slow and fast and stufff. Thanks.


  8. Okay, so bogax's thing worked, except the speed of the squirrel seemed to change randomly, sometimes going painfully slow, sometimes turbo speed. How would I fix this? thanks for the 4th time.


  9. uh oh, now its not moving period.

     

     a = 0
     b = 5
     dim slowspeed = a.b

     if player1y < player0y then player1y = player1y + slowspeed
     if player1y > player0y then player1y = player1y - slowspeed
     if player1x < player0x then player1x = player1x + slowspeed
     if player1x > player0x then player1x = player1x - slowspeed

     

    once again, thanks for the help


  10. here is an example:

     

    You know the tinkernut tutorial, right? That has you making a game in which a squirrel-thing chases a nut thing. to make the squirrel move you would use some lines of code like 

     

    if player1y > player01 then player1y = player1y -1

     

    how would I make it so that it would be like "then player1y = player1y - 0.5" aka, slowing down the squirrel. Help is appreciated. Thanks.

×
×
  • Create New...