no... maybe i didnt explain myself at the beginning. i dont want the objects to change direction, but to simply stop (vx=0 or vy=0, according to collision direction). and not only stop, but stop the...
Type: Posts; User: david37370
no... maybe i didnt explain myself at the beginning. i dont want the objects to change direction, but to simply stop (vx=0 or vy=0, according to collision direction). and not only stop, but stop the...
thanks for the detailed reply!
i tried the code i posted above, and it determines the collision direction fine, according to the first rectangle.
now, i dont know how to respond to the collision:...
Allrighty now, i made some progress: realised there is the Rectangle.intersects() method! god it is gonna save me so much headache (thought it feels like cheating :D).
so now, i made two rectangles:...
contains is helpful if i am trying to check if there is a rectangle INSIDE an other rectangle, which is not collision detection. you said, "depending on what you have done in the implementation so...
you are right, i should really have thought about it... not spending efficiency of program on such things as checking collision between far objects, thanks.
you didnt answer my question, though: how...
hello.
I am working on a strategy game, and i made a few models of collisions between rectangles in the past but now i need it to be precise and the code to be versatile.
i am not going to show you...
here is my progress:
game.rar - Speedy Share - upload your files here
no real menu yet, just the image. i do not intend the game to be lavarunner like it is, its just for the meanwhile fun :D but...
thanks!
I meant an in game menu, like in most computer games, with a few buttons. why do you recommend taking a step back? i (think) i know what im doing, and i like programming anyway.
hmm enigne? none XD
I program it all by myself and a friend who knows to draw. i already made a nice game in about 3 days, an imitation of "this is the only level" game.
about the menu, should i...
hello!
first of all, I am making a game. ;)
the game is 2D and a simple side-scroller.
the problem is, that i want to make menu's. and i dont have a clue how. i mean, how to make the main menu, (I...
ok, i'll just do it manually
maybe i'll send it to you as a java file?
thats wierd because i always do that, and when i look at eclipse now its like you said, but when i copy paste it it gets unorganized, as you explained
maybe if you copy it back to an IDE, it will be...
you're right i'll edit it now
is it better now?
ok thanks you. i didnt explain myself good enough i guess: i wanted to know if i did stupid things or wasted efficiency or if i could make it better, shorter, etc. if i could somehow improve the...
i understand. i do it the same but just without the class brackets, because im used to doing so but i can move them all 4 spaces. does it really matter?
i dont understand what do you mean "too many statements start in the first column". you meant i should space it more?
hello.
im quite new here, and this is my first post- so straigh for the business, i was making a program at eclipse, that is supposed to get an input of an integer, another integer and an array of...