ID:96076
 
New demo!

http://www.byond.com/developer/ChrisGayle/CGPixelMovement

After doing pixel projectiles I decided to do pixel movement, there is one noticeable bug when you play by yourself, you get stuck at the very corners of blocks but otherwise I haven't encountered any. I think dealing with pixel movement is a great learning experience.

Notes:

-> It works best using factors/multiples of 32.

-> Its been built to take into account square body masses therefore a body can be decreased/increased in size and work effectively. (Will allow customization in later versions.)

-> Diagonals are achieved by holding corresponding keys, i.e NORTH key + EAST key = NORTHEAST movement.

Comments, criticism and advice are very much appreciated. Thanks.
This is my new favorite demo simply because of the way you handled the movement macros. Why most of BYOND hasn't picked up on the key+up/key+down method is beyond me.
@SA - heh, yeah i'm a avid fan of key+up/key+down. I hate the "tap tap tap" mentality a lot of BYOND games perpetuate. I like being able to hold multiple keys.
Hmmm, how does it handle with step sizes larger than 32, because a major problem I developed in my system is that whenever the step size is larger than the atom's bounding box it simply steps over the atom (which I suppose would be logical because larger steps means it would move over smaller things but it still irks me >.<). Also, I didn't notice myself getting stuck at the corner of blocks O.o
@Cody123100 - Heh well it handles them pretty well the way I wrote it is to calculate in 32 pixel increments and adjust thereafter I used:

while(calculate_x+x_change>31)

I think! So it flows through instances of 32 pixels.
Chris Gayle wrote:
@SA - heh, yeah i'm a avid fan of key+up/key+down. I hate the "tap tap tap" mentality a lot of BYOND games perpetuate. I like being able to hold multiple keys.

I prefer tap.
Wtrbooger wrote:
I prefer tap.

I'm guessing you don't really play games outside of BYOND.
SuperAntx wrote:
Wtrbooger wrote:
I prefer tap.

I'm guessing you don't really play games outside of BYOND.

Nah he has no clue, thats all. Hes in his childhood rebellious stage. No worries.

Good stuff Chris!
Looks pretty nice, adjustable speed and sliding would make an excellent library.
@PerfectGoku - Thank you, those will be present in updates to come. =D

@Pmitch - Gracias. =]

@Wtrbooger - That is a foolish point of view in my opinion. =/
Tap is very annoying and aggravating.
Although, there are a few games that would essentially "require" it like WildBlood's Harvest Moon: Trinity Ranch since you are doing a lot of delicate movement to ensure you don't miss-step or accidentally go too far.

Either way, it's time to get with the new and avoid the carpal tunnel.
Cool.
Good job man
No source until perfect.

So we're never going to see the source, as perfection is impossible. =(

Oh well, back to the drawing board.
Yay! You finally did it :P You see... it wasn't that hard ^.^
I guess you fools didn't understand quite well what i said. My fault. But as in tap i mean by the 1 closest movement of the pixel...lol fuck it i suck at explaining shit. Chill the fuck out people!!
Can't wait till you update and release this. It looks great.