Iantra Solari

Greenhorn
+ Follow
since Apr 30, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Iantra Solari

I'm not exactly good at swing myself, but i would suggest making it so that each rectangle is a new object, and then allow the user to change the properties of it... You could make a "Rectangle" class and make the starting point and the ending point or however they're called be located at wherever the mouse starts dragging and wherever the mouse stopped dragging. You're going to have to add MouseListener in order to achieve this. Then, by pushing a button the user could choose one of the rectangles and then edit the x and y coordinates in a text field.
11 years ago
But i never said he was Mr. campbell, i said ritchie sounded like christine's son...
11 years ago
No no no no no mr campbell is christine's ex husband, or boyfriend i'm not sure. Anyways, ritchie campbell is christine's son.
11 years ago
at least someone got the reference.
11 years ago
Ritchie... that sounds like christine's son. Thanks for moving this to the right place and thanks to Rob for the comment, i guess i'll have to learn some more java and understand what all that means before making a game-thing :P
Any tutorials or something you can suggest me to learn which you consider good??

Just paid a little more attention to the code and i realised i dont really need to be an expert in java to understand it... Thanks, i think i'll change it to that since it certainly looks easier to understand
Also, i used 64 and 96 because that's the sprite dimensions i liked and found, the 94s were just me being bad at adding mentally, but i was in the pocess of changing 94s to 96s when i discovered the flipped image problem. Anyways, should i use 16*32 sprites?
11 years ago
Well, i'm having another problem with the "game" i'm trying to make. Basically, i'm in the process of changing the images to a tileset, so i only need 1 image. The problem is that the walking animation and the standing still images are flipped, i don't know why because they use the same image. Here's my code, could someone guide me towards fixing the problem?



I already tried making a flipped over image and using that as the still image, but the image stays the same...
oh and walking==3 is still, walking==4 is moving


Edit:
I'm really sorry for taking up space in the forums, but somehow playing around with the values in the script got me to fix the problem. I'm sorry i made this useless topic
11 years ago
It = The program;



that WAS the error. However, i found a solution by changing the image code, thanks for the help everyone.
11 years ago
umm... sorry if i'm kinda dumb but im VERY new at java, so i tried the urls like you said but they aren't working(the Game isn't in the test package anymore so i didn't try the /test/Images) it keeps telling me there's an error with that line. If it's too hard to tech me or i'm too dumb to notice the error im having then don't worry, i can live with having the images in the same file as the classes.
11 years ago
well, now the file opens but i just get a black screen for a couple of seconds and then it closes. What could be the problem? it works perfectly on eclipse.

Edit: whoops, i forgot about the cmd error:



Edit2: I looked around my java file a bit and all the errors seem to be based in this line:

I checked for background.jpg in the .jar file and it's there, and i don't see anything wrong/different from the character codes except for the .jpg extension, but it works in eclipse.

Edit3: Finally, i got it to work by deleting all package thingies and putting everything in the same folder, thanks for the help ^^

So... the code will work if i put the .pngs and the .classes in the same folder, but it won't work if i put the .pngs in Images\... any idea why this happens? (I do realize i have to change the java path to Images\background.png instead of background.png)
11 years ago
Hey everyone, i'm quite new at java and i remember making a jar file a while ago, and it took me some time to make it work correctly.
Now, i made a simple game file but i can't seem to remember how to make the .jar file work. I have all the classes and the manifest file, and they run perfectly on eclipse, but when i make the .jar i get the "main class not found" error.
I cant attach all the files, so i uploaded the .java files, the .class files, the manifest and the jar files here, i hope someone can help me...


Oh, and here's the other .jar file which i got working
11 years ago