I suck real bad, plz help - quite urgent lots of stars
Hi, only my second time posting here, I have searched about this topic but I do not understand, as I never understand how to integrate my own code with examples.
I know this is asking a lot, but if somebody could show me a way, using the variables I already have, or telling me what I need to change it would really help.
Problem:- Need to rotate a 2D gif image to face the direction of Movement / Keypress (Right, Left, Up, Down).
The program starts with the Gif moving in a random direction, but always facing up, I need it to face the way it's moving.
Netbeans Code - sorry it'svery long to sort through and confusing, i'm new and did my best arranging the program around its previous form - classes highlighted bold.
PLZ IGNORE
Message was edited by: Drew__
Drew
[847 byte] By [
Drewa] at [2007-11-26 14:29:22]

Do you know how to rotate?
Drew, I saw your messy post, but didn't (couldn't) read it. Do you see the buttons above the posting box, especially the one that says "code"? Use that to format your code nicely. Also see the Formatting Tips link there. Try to post a small example that shows what your trouble is. Also, there is a Swing forum where you should post Swing questions (look at the list of forums).
If you use Swing (and you'd better do) did you know that your Graphics
parameter is actually a Graphics2D? That thing can do whaterever you
wanted it to do but were too afraid to ask. Read its API docs and pay
special attention to its affine transform capabilities.
kind regards,
Jos
One more tip: go through this 2D graphics tutorial first: http://java.sun.com/docs/books/tutorial/2d/index.html
> PLZ IGNOREWas I the only one who read this? :p
> > PLZ IGNORE> > Was I the only one who read this? :pI'd answer, but I'm ignoring this thread.~
> > PLZ IGNORE> > Was I the only one who read this? :pNo, I read it and that's the reason why I was ignoring all this time. :P
> > > PLZ IGNORE> > > > Was I the only one who read this? :p> > I'd answer, but I'm ignoring this thread.> > > > ~Bah! CUC
> > PLZ IGNORE
>
> Was I the only one who read this? :p
Yes, I saw. But, in case he has another question, it would be useful if he knew about code tags. His unedited post was a mess (italics, bold [bold was intentional, italics wasn't], and no (or very few, anyway) newlines.
> Bah! CUC[url= http://en.wikipedia.org/wiki/CUC]Cuban convertible pesos?[/url]
Yeah, thx guys, sorry about the formatting.....I did read the 2D rotate tutorials, but it's hard to understand without all of the code being commented. As im completely new to any type of programming I find it difficult.
Probably just gonna give up and use the Pac-man vector in the original code, it's easier, so I won't get many marks, but hopefully i'll learn this stuff later on.
Sorry guys thx for your help
Drewa at 2007-7-8 2:23:42 >

> Bah! CUC[url= http://en.wikipedia.org/wiki/Cuban_convertible_peso]Cuban convertible peso[/url]?~
> > Bah! CUC> > [url= http://en.wikipedia.org/wiki/CUC]Cuban convertible pesos?[/url]LOL! Boy, am I slow! :o)~
> > Bah! CUC> > [url= http://en.wikipedia.org/wiki/Cuban_convertible_pe> so]Cuban convertible peso[/url]?> > ~ http://www.cuc.ca/
> > Bah! CUC
>
> [url=http://en.wikipedia.org/wiki/Cuban_convertible_peso]Cuban convertible peso[/url]?
No, "Squirrel, translated in the Quiche Mayan dialect." Were there any real men in that tribe? Okay, so the name doesn't actually come from what they ate.
> No, "Squirrel, translated in the Quiche Mayan> dialect." Were there any real men in that tribe?> Okay, so the name doesn't actually come from what> they ate.You need cojones to eat Squirrel quiche.
> You need cojones to eat Squirrel quiche.I suppose so. I have squirrel recipes in my cookbook, but none for squirrel quiche. I suppose you could use squirrel in a quiche that calls for ham.
> Cuban convertible peso?Among the most beautiful banknotes I've ever seen.
> > Cuban convertible peso?> > Among the most beautiful banknotes I've ever seen.I found the dual official currencies in Cuba a bit crazy -- pesos for you and tourist pesos for mi.
What does "lots of stars" mean?
> What does "lots of stars" mean?Duke Stars. You are being enticed to help. Very seductive isn't it. *wink* *wink* *nudge*
Duke dollars have been transmuted into stars!!!Ahhhhhhhhh! [head explodes from the sheer enormity of that]
> Ahhhhhhhhh! [head explodes from the sheer enormity of> that]Speaking of bad exception handling.. :p