Question description:
Are extending attacks coded as projectiles or some special codes using idk bound_x's?... Never tried this before, I just want to know how other devs do it ^^
ID:1195269
Mar 11 2013, 10:18 pm
|
|
Define what an extending attack is? Is it an actual projectile that needs collision detection? Such as a typical bullet projectile that damages on impact via enemy?
I'm not really sure what you're asking, but if you want to learn about collision detection, you should read up on some articles. You can search for these under Tutorials & Snippets forum section. Some keywords to use for this are: pixel movement, collision detection, bounding boxes, etc. Here's one example by Iain Peregrine. |
I mean like a 'long spear hitting 3-tiles' in front of you then retracts back.
And I'm well aware of how projectiles work. I'm just unsure what type of code I'll be using for this kind of moves. |
Projectiles are coded as objects that move from one point to the next.