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]
# 1
Do you know how to rotate?
DrLaszloJamfa at 2007-7-8 2:23:42 > top of Java-index,Java Essentials,New To Java...
# 2

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).

doremifasollatidoa at 2007-7-8 2:23:42 > top of Java-index,Java Essentials,New To Java...
# 3

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

JosAHa at 2007-7-8 2:23:42 > top of Java-index,Java Essentials,New To Java...
# 4
One more tip: go through this 2D graphics tutorial first: http://java.sun.com/docs/books/tutorial/2d/index.html
DrLaszloJamfa at 2007-7-8 2:23:42 > top of Java-index,Java Essentials,New To Java...
# 5
> PLZ IGNOREWas I the only one who read this? :p
Tribioa at 2007-7-8 2:23:42 > top of Java-index,Java Essentials,New To Java...
# 6
> > PLZ IGNORE> > Was I the only one who read this? :pI'd answer, but I'm ignoring this thread.~
yawmarka at 2007-7-8 2:23:42 > top of Java-index,Java Essentials,New To Java...
# 7
> > 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
aniseeda at 2007-7-8 2:23:42 > top of Java-index,Java Essentials,New To Java...
# 8
> > > PLZ IGNORE> > > > Was I the only one who read this? :p> > I'd answer, but I'm ignoring this thread.> > > > ~Bah! CUC
aniseeda at 2007-7-8 2:23:42 > top of Java-index,Java Essentials,New To Java...
# 9

> > 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.

doremifasollatidoa at 2007-7-8 2:23:42 > top of Java-index,Java Essentials,New To Java...
# 10
> Bah! CUC[url= http://en.wikipedia.org/wiki/CUC]Cuban convertible pesos?[/url]
DrLaszloJamfa at 2007-7-8 2:23:42 > top of Java-index,Java Essentials,New To Java...
# 11

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 > top of Java-index,Java Essentials,New To Java...
# 12
> Bah! CUC[url= http://en.wikipedia.org/wiki/Cuban_convertible_peso]Cuban convertible peso[/url]?~
yawmarka at 2007-7-8 2:23:42 > top of Java-index,Java Essentials,New To Java...
# 13
> > Bah! CUC> > [url= http://en.wikipedia.org/wiki/CUC]Cuban convertible pesos?[/url]LOL! Boy, am I slow! :o)~
yawmarka at 2007-7-8 2:23:42 > top of Java-index,Java Essentials,New To Java...
# 14
> > Bah! CUC> > [url= http://en.wikipedia.org/wiki/Cuban_convertible_pe> so]Cuban convertible peso[/url]?> > ~ http://www.cuc.ca/
aniseeda at 2007-7-8 2:23:42 > top of Java-index,Java Essentials,New To Java...
# 15

> > 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.

doremifasollatidoa at 2007-7-21 16:11:44 > top of Java-index,Java Essentials,New To Java...
# 16
> 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.
DrLaszloJamfa at 2007-7-21 16:11:44 > top of Java-index,Java Essentials,New To Java...
# 17
> 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.
doremifasollatidoa at 2007-7-21 16:11:44 > top of Java-index,Java Essentials,New To Java...
# 18
> Cuban convertible peso?Among the most beautiful banknotes I've ever seen.
YAT_Archivista at 2007-7-21 16:11:44 > top of Java-index,Java Essentials,New To Java...
# 19
> > 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.
DrLaszloJamfa at 2007-7-21 16:11:44 > top of Java-index,Java Essentials,New To Java...
# 20
What does "lots of stars" mean?
TuringPesta at 2007-7-21 16:11:44 > top of Java-index,Java Essentials,New To Java...
# 21
> What does "lots of stars" mean?Duke Stars. You are being enticed to help. Very seductive isn't it. *wink* *wink* *nudge*
cotton.ma at 2007-7-21 16:11:44 > top of Java-index,Java Essentials,New To Java...
# 22
Duke dollars have been transmuted into stars!!!Ahhhhhhhhh! [head explodes from the sheer enormity of that]
TuringPesta at 2007-7-21 16:11:44 > top of Java-index,Java Essentials,New To Java...
# 23
> Ahhhhhhhhh! [head explodes from the sheer enormity of> that]Speaking of bad exception handling.. :p
Tribioa at 2007-7-21 16:11:44 > top of Java-index,Java Essentials,New To Java...