I am so ticked off. I'm trying to add audio into my game, and I was getting nothing but errors, so I made a new document and copied the text WORD FOR WORD from
this website (adding my own song in) and I keep getting, first of all, "unexpected token: [" then it tells me "Java" is unexpected.
AND, it just keeps telling me "unexpected token: \" and that's not even in this script. I give up.
We have a Santa code that starts at an X coordinate of 185. Each time you press an arrow key, you move 31 steps in that direction. We tried this code:
if (santaX==x{
background(250);
}
However, the background flickered at random moments, and was not what we expected it to do. We are looking for a simple way to sense the touching of these two objects. We are not dealing with shapes, we are dealing with imported images. Here is the reindeer code:
Hello, you all know the story. We're almost done, but I can't figure out how to make Santa react to hitting the deer. What's the simplest way to do this? Here's the code: (it's long, sorry.)
Hello all. I'm moving along, but I hit another bug. I'm trying to make it so when Santa gets to a house, a present is dropped in its place, and Santa resets to the first position. The gift is fine, and Santa resets, but he won't move after resetting. I know it's still taking the input, because the score is rising, but Santa himself won't move. Any thoughts? Here's the code I have. Thank you, and sorry for the annoyance.
Hello, it's me again doing the Santa/Frogger project. We're moving on well, and I'm feeling more confident! However, I ran into another problem. I got text to work just fine, and I want to put the text "SCORE" in the bottom-left corner of the screen. However, I have a black background image, and I cannot figure out how to bring the text to the front of the screen. Right now it shows up, but it's stuck behind all my images. I know this is probably an easy fix. Thank you in advance!
I'm making a Frogger-esque game, and I want to make it so our Santa sprite (Frogger) can't move off the borders of the screen. What's the easiest way to do this? I would appreciate any help, as I am new and totally confused. Thank you!
Hi there. I have to use Processing for a project at school, and my group decided to do a Christmas-themed Frogger game. We split up the responsibilities. My first task was to make Santa (Frogger) move, which went fine. Now, I need to figure out a way to make objects interact. We're using sleds instead of logs on the water, and I need to figure out (in the future) how to make Santa move with the sled when he steps on it. But I searched for two hours last night and found NOTHING about intersection, collision, whatever.
I have to be honest, I'm already really ticked off at this. I hate it already, but I need to move on. Can anyone offer any ideas? I have extremely minimal experience with programming at all. I'll post what I have that works so far: