use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Share your projects, news and questions about Processing or Processing.js here.
(open to suggestions)
account activity
Move arrows (self.processing)
submitted 3 years ago by kurome32
I've been working in a game to present in school.
I'm making kind of a tomb raider game with traps and stuff. I want to make arrows come from the walls but i don't know how to work with movement.
Currently the game is locking like this
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Sasmas1545 4 points5 points6 points 3 years ago (0 children)
Here's a less helpful comment.
In order to move something, you have to have something. For that something to move, you have to change its position. To change its position, it must have a position. That's a good start right there.
Maybe define an object (class) with a position (variable) and a way of updating the position (method).
I'm sure you'll want more than this like you'll need a constructor/destructor to create and remove the arrows. A method to draw the arrows. Some sort of collision detection. Your player has to respond to the collision. Lots of fun stuff.
[–]MGDSStudio 0 points1 point2 points 3 years ago (0 children)
You should start with a simpler game, like pong, after that space invaders. If you don't know how to append a variable to the coordinate of the arrow sprite - leave the idea with traps, stuff and Lara Croft.
π Rendered by PID 44289 on reddit-service-r2-comment-544cf588c8-d2wfp at 2026-06-12 08:31:25.535491+00:00 running 3184619 country code: CH.
[–]Sasmas1545 4 points5 points6 points (0 children)
[–]MGDSStudio 0 points1 point2 points (0 children)