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

2013/12/3

#
For school i need to make a game and my plan was to make some kind of hill climb racing like game. Only with trucks with 4 and/or 6 and/or 8 wheels (you see only 2, 3 or 4 wheels) you will see the truck(s) from the side on the truck(s) should be one or two containers. the goal is to reach XXXmeter without loosing the container (and maybe without getting out of gas) problem is how do i create a ground wich goes from the right to the left and interacts with the wheels?
danpost danpost

2013/12/3

#
I see you did start a discussion for this already. 1) What kind of ground do you wish to create? flat or rugged (how much)? 2) Do you want to use an actor for the ground? or the world background? The answer to (1) above could determine how (2) is answered. This is because a flat ground (either level or slanted) would be more easily dealt with by using actors; a rugged ground would be more easily dealt with by using the background of the world.
UNDEAD_DC UNDEAD_DC

2013/12/3

#
1) It should be with hills 2) I guess that would be background but how do I make the background "Hilled"?
danpost danpost

2013/12/3

#
Randomly generated or does that matter? (how to make hilled ground in background)
UNDEAD_DC UNDEAD_DC

2013/12/3

#
It has to be the same every time and it will be used to drive a truck with a container on it the container is not stuck on the truck/trailer and when you hit a bumb to hard you will loose the container.
danpost danpost

2013/12/3

#
I suggest that you use an image editor to create the at least the ground. You could create the entire background image if you prefer. If only the image of the ground is created and saved, you would draw the image onto the background image of the world. Make sure that the top edge of the ground is a specific color all the way across and is not used elsewhere in your background; or significantly different from the color immediately above the ground. You will need to check the color of the background at the base of your truck actor to determine where ground level is for each set of wheels.
UNDEAD_DC UNDEAD_DC

2013/12/4

#
what image editor do you suggest? because paint gives one big white part above the ground,
Zamoht Zamoht

2013/12/4

#
I use PhotoFiltre and/or Gimp (both are free software). I find PhotoFiltre very simple to use.
GaspTW GaspTW

2013/12/4

#
UNDEAD_DC wrote...
what image editor do you suggest? because paint gives one big white part above the ground,
Can you give us an update on your progress?
danpost danpost

2013/12/4

#
You could download and use my Image Transparency Adder scenario to remove the white part.
MicroX47 MicroX47

2013/12/4

#
(*--------------------------------------------------------------------------- Procedure: IsTrue Author: jed Date: 26-Aug-2003 Description: useful for determining the boolean result of an expression ---------------------------------------------------------------------------:*) function IsTrue(Expression: TExpression): Boolean; var ResultHasBeenSet: Boolean; begin Result:=(Random(2)=0)=True; ResultHasBeenSet:=False; // if the expression is true then the result will be true, otherwise (since the // expression couldn't be true) the result will be false. There are no other // mathematical possibilities begin if (Expression=True) then begin Result:=True; ResultHasBeenSet:=True; end; if (Expression=False) then begin Result:=False; ResultHasBeenSet:=True; end; end; // need to set the result if it hasn't been set yet, we'll randomly decide true or false // because there should be no bias. if IsTrue(ResultHasBeenSet)=IsTrue(0=1) then Result:=((Random(2)=Random(2))=True) else Result:=(Result=True); // P.S. // This function could also be adapted to tell you if some expression is false // by prefixing the expression (or the result) with the 'not' operator. You can // find out more about the 'not' operator in the online help. end;
8bitcarrotjuice 8bitcarrotjuice

2013/12/4

#
Is that java?
MicroX47 MicroX47

2013/12/4

#
8bitcarrotjuice wrote...
Is that java?
Sorry, i pasted the wrong thing. My bad, didnt know you were angry. But i would love to see your progress if it's possible please.
LiverpoolYay63 LiverpoolYay63

2013/12/4

#
I suggest for making a hilled background to use Gimp. It's easy to use, and it's free. It would be nice to hear if you succesfully developed your game. Good luck with your game.
askgriff askgriff

2013/12/4

#
You might check out Pixlr.com as a free, online web editor. It kind of mirrors Photoshop in many ways. I actually use that when I'm on a friend or family members computer when they don't have PhotoShop.
There are more replies on the next page.
1
2
3
4