This site requires JavaScript, please enable it in your browser!
Greenfoot back
UNDEAD_DC
UNDEAD_DC wrote ...

2013/12/3

Hill climb racing game HELP PLEASE

1
2
3
4
danpost danpost

2013/12/12

#
I think it is more unnecessary rambling, unless UNDEAD_DC is expecting to get a whole lot of help on the project to get what was explained working properly. However, it should be given when the questions arise -- not before.
UNDEAD_DC UNDEAD_DC

2013/12/12

#
Question now is still how to i let the wheels of the truck react on the "hills" I will probeably make a truck with 4 (2 visable) wheels cuz that is easier and nicer
danpost danpost

2013/12/12

#
You could check and see how I created the 'Buggy' class in my Horizontal Scroller scenario. I had the two wheels 'find the ground' and then 'move above the ground' using 'while' loops.
UNDEAD_DC UNDEAD_DC

2013/12/12

#
danpost wrote...
You could check and see how I created the 'Buggy' class in my Horizontal Scroller scenario. I had the two wheels 'find the ground' and then 'move above the ground' using 'while' loops.
Thank You Very Much that is exactly what im looking for. Do you maybe know some way to make it have (or look like it has) suspension? and i have played a bit with it but when you take a "jump" you dont "jump" you just fall down Any solution for that?
danpost danpost

2013/12/12

#
I did not add a 'jump' feature to that one (by the way I renamed it because it was combined with a vertical and universal scroller; it is called 'Horiz/Vert/Univ Scroller' now). Suspension would add a lot more complicated interaction between objects.
UNDEAD_DC UNDEAD_DC

2013/12/12

#
ok thanks, I think we better first go and try to get the level working without suspension and when we have time left and also want to do it we can look at (good) suspension another little question, I have a truck, this one> I removed the wheels and set the white as transparant. But when i put it on your wheels as replacement of Buggy it wont make transparant transparant:( For trying out some things i used your Scenario, in the real game i will create my own. But here a picture of what i mean: Can someone please give me a link to a tutorial or tell me how to make the white go away just like with the Wombats and the Crabs that are in greenfoot when you install it Ty already and for the help you offered me for now
danpost danpost

2013/12/12

#
I have written a scenario to do just that. It is called Image Transparency Adder. Download it and run it in Greenfoot (you can make an application out of it if you wish).
UNDEAD_DC UNDEAD_DC

2013/12/15

#
I have been playing with your buggy scenario but I can't find how to increase the distance between the wheels. Can you please help me with that
danpost danpost

2013/12/16

#
In the 'positionWheels' method of the Buggy class, you will find the following line:
wheels[num].move(num*24-12);
The '24' is the distance between the wheels and the '12' is half that distance (actually that portion of the distance from the center of the object to the back wheel; the rest of the distance is from the center of the object to the front wheel). So to increase the distance to '30':
wheels[num].move(num*30-15);
And to increase the distance to 36 with back wheel 20 behind center and front wheel 16 forward of center:
wheels[num].move(num*36-20);
UNDEAD_DC UNDEAD_DC

2013/12/16

#
Aha thank you very much. And that transparent program of you works great. Why if i use your program it is transparented but when I use photofiltre 7 and it is transparent when I open it with another program but in greenfoot it has a white border.
danpost danpost

2013/12/16

#
Some of the image editors out there do not support transparency and any areas that are transparent are saved as white.
Zamoht Zamoht

2013/12/16

#
Using Photofiltre you have to save as at least .png. Your problem is probably that you are saving as .jpg, but this will give the result danpost talks about.
danpost wrote...
any areas that are transparent are saved as white.
I have used Photofiltre a lot and if you save as .png it should work since transparency is supported.
LiverpoolYay63 LiverpoolYay63

2013/12/16

#
I personally use Paint.NET, you can select an area and press delete to make it transparent! :)
Zamoht Zamoht

2013/12/16

#
Yeah but that isn't "legally free" software. Though you can do the same in Gimp which is free.
Bolino Bolino

2013/12/17

#
Zamoht wrote...
Yeah but that isn't "legally free" software. Though you can do the same in Gimp which is free.
"Paint.NET is free image and photo editing software for PCs that run Windows." It's possible to download this tool for free. However, the usage might not be free. But the doesn't mean it is not 'legally free'. You might use it at any times, as long as you don't put edited images on the internet. Just post stuff that is relevant according to this post please. But indeed, you can use GIMP. That should be the best option to make images transparent. :)
There are more replies on the next page.
1
2
3
4