Page 2 of 3

Re: 8 direction movement not right, sprite jumps

PostPosted: Thu Jan 31, 2008 2:27 pm
by Doppel
[quote="liamdawe":gz86qm68]Just a note if x is left and y is up, what are the other two?[/quote:gz86qm68]

X,Y are dimension, x is horizontal, y is vertical.

X-1 means it will go left by 1
X+1 means it will go right by 1
Y-1 means it will go up by 1
Y+1 means it will go down by 1

Simple math =D

Re: 8 direction movement not right, sprite jumps

PostPosted: Thu Jan 31, 2008 2:28 pm
by liamdawe
Well don't judge but maths has been, gone and failed for me a long time ago!

Re: 8 direction movement not right, sprite jumps

PostPosted: Thu Jan 31, 2008 2:44 pm
by Doppel
And you want to Create games/programs?

Re: 8 direction movement not right, sprite jumps

PostPosted: Thu Jan 31, 2008 2:49 pm
by deadeye
[quote="Doppel":2evs97bd]
Y-1 means it will go down by 1
Y+1 means it will go up by 1[/quote:2evs97bd]

Actually, it's the other way around :wink:

Re: 8 direction movement not right, sprite jumps

PostPosted: Thu Jan 31, 2008 3:01 pm
by Doppel
Its inverted then, ok gonna repair it XD thx.

Re: 8 direction movement not right, sprite jumps

PostPosted: Thu Jan 31, 2008 5:25 pm
by liamdawe
[quote="Doppel":1ihbl7yn]And you want to Create games/programs?[/quote:1ihbl7yn]

No offense but whoever said you need to be great at maths for programming, well, i am living proof you do not, i have made this month alone 100 off my programming skills in php....but lets not talk about all that.

Thanks for the input guys, it's working nicely now.

Re: 8 direction movement not right, sprite jumps

PostPosted: Thu Jan 31, 2008 6:08 pm
by Doppel
I dont know much about php but it can't make games right? :P

Re: 8 direction movement not right, sprite jumps

PostPosted: Thu Jan 31, 2008 6:13 pm
by liamdawe
Actually it can make games...obviously you haven't been on the internet for long, there are thousands of php games!

Re: 8 direction movement not right, sprite jumps

PostPosted: Thu Jan 31, 2008 6:16 pm
by Doppel
Since 2001 :P, and like i said "I dont know much about php..." but you were creating games in php?

Re: 8 direction movement not right, sprite jumps

PostPosted: Thu Jan 31, 2008 10:05 pm
by liamdawe
I once made a text based RPG game in php/mysql yes, sold it for 200 as well :)