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

2013/12/5

#
Paint also works really well if you are skilled in creating things in it. I am creating the same game at school and to keep it flowing i decided that it would be best to make it switch worlds each time so that the game goes on longer. For the gas portion i created a timer from 100 that would countdown. If there was 5/100 I had it display on the screen fuel low. Then when it got to 0/100, Greenfoot.stop();. I got the teacher to take the code for the car to touch the ground the whole time to a higher level programming class with any luck my code will be returned back to me tommrow.
UNDEAD_DC UNDEAD_DC

2013/12/5

#
GaspTW wrote...
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?
MicroX47 wrote...
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 wrote...
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.
hi at this moment there is not much "progress" to show because: 1) i need some sleep somethimes 2) I need the other team members approval to really use this because we work with 5 man on this project 3) i downloaded photofilter and trying that now
joe.colo1 wrote...
Paint also works really well if you are skilled in creating things in it. I am creating the same game at school and to keep it flowing i decided that it would be best to make it switch worlds each time so that the game goes on longer. For the gas portion i created a timer from 100 that would countdown. If there was 5/100 I had it display on the screen fuel low. Then when it got to 0/100, Greenfoot.stop();. I got the teacher to take the code for the car to touch the ground the whole time to a higher level programming class with any luck my code will be returned back to me tommrow.
Can you upload that scenario please? not going to copy it only to look at and maybe learn from your thing. I will post some "progress" im making the ground now with the hills and trying some code to make it colide with the line/ground
GaspTW GaspTW

2013/12/5

#
Just post what you already have mate so we can help :)
UNDEAD_DC UNDEAD_DC

2013/12/5

#
GaspTW wrote...
Just post what you already have mate so we can help :)
I am now trying to find out what the size of the game has to be so i dont create some misformed object and im drawing a bit will post something in like 10~20 min
LiverpoolYay63 LiverpoolYay63

2013/12/5

#
UNDEAD_DC wrote...
GaspTW wrote...
Just post what you already have mate so we can help :)
I am now trying to find out what the size of the game has to be so i dont create some misformed object and im drawing a bit will post something in like 10~20 min
It's 40 minutes after you posted this, and you still haven't posted something.
LiverpoolYay63 LiverpoolYay63

2013/12/5

#
UNDEAD_DC wrote...
GaspTW wrote...
Just post what you already have mate so we can help :)
I am now trying to find out what the size of the game has to be so i dont create some misformed object and im drawing a bit will post something in like 10~20 min
It's 40 minutes after you posted this, and you still haven't posted something.
UNDEAD_DC UNDEAD_DC

2013/12/5

#
LiverpoolYay63 wrote...
UNDEAD_DC wrote...
GaspTW wrote...
Just post what you already have mate so we can help :)
I am now trying to find out what the size of the game has to be so i dont create some misformed object and im drawing a bit will post something in like 10~20 min
It's 40 minutes after you posted this, and you still haven't posted something.
Yea i know... I am really sorry my Laptop is crashing can't work on this for now will post when i find whats causing the problem
joe.colo1 joe.colo1

2013/12/5

#
import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.awt.Color;
import java.awt.Font;
/**
 *Code from the crab timer.
 *Write a description of class Fuel here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Fuel extends Actor
{
    long initialTime = System.currentTimeMillis();
    long elapsedTime = 0;
    public static int fuel = 0;
  public Fuel()
  {
      updateImage();
    }
    /**
     * Act - do whatever the Fuel wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
    public void act() 
    {
        elapsedTime = System.currentTimeMillis() - initialTime;
        updateImage();
        if(elapsedTime >= 95000)//equals 95 seconds
        {
            setImage(new GreenfootImage ("Fuel Low", 100 , Color.red, new Color (0, 0, 0, 0)));
        }
        if(elapsedTime >= 100000)//equals 100 seconds
        {
            Greenfoot.stop();
        }
    }    
    private void updateImage()
    {
        long time = ((100000 - elapsedTime)/ 1000);
        GreenfootImage img = new GreenfootImage(300,300);
        img.setColor(Color.GREEN);
        Font font = new Font("Arial", Font.PLAIN, 100);
        img.setFont(font);
        img.drawString("" + time, 1, 100);
        setImage(img); 
    }
}
UNDEAD_DC UNDEAD_DC

2013/12/9

#
sorry still with a broken laptop :( next friday i hope to have the parts of my new PC Cooler Master HAF X - Be quiet! Pure Power BQT L8-CM-730W - Samsung 840 Pro Series MZ-7PD256 - Corsair Vengeance - 16 GB : 2 x 8 GB DDR3 - Toshiba DT Series 2TB 5700RPM - Intel Core i5 4670K / 3.4 GHz - MSI Z87-G45 Gaming - Samsung SH-224DB - Scythe Mugen 4 PCGH - XFX R9 280X 3072MB - going to build that friday or saturday hope it will go in one try then more:)
GaspTW GaspTW

2013/12/10

#
Why do you post your specs.. I think it's not really relevant for this post
LiverpoolYay63 LiverpoolYay63

2013/12/10

#
GaspTW wrote...
Why do you post your specs.. I think it's not really relevant for this post
I agree with this person.
UNDEAD_DC UNDEAD_DC

2013/12/10

#
LiverpoolYay63 wrote...
GaspTW wrote...
Why do you post your specs.. I think it's not really relevant for this post
I agree with this person.
oke i agree to but wanted to show you what im getting because i have nothing else to post im sorry :*(
joe.colo1 joe.colo1

2013/12/10

#
GaspTW wrote...
Why do you post your specs.. I think it's not really relevant for this post
I agree cause we care.
UNDEAD_DC UNDEAD_DC

2013/12/12

#
GaspTW wrote...
Why do you post your specs.. I think it's not really relevant for this post
LiverpoolYay63 wrote...
GaspTW wrote...
Why do you post your specs.. I think it's not really relevant for this post
I agree with this person.
joe.colo1 wrote...
GaspTW wrote...
Why do you post your specs.. I think it's not really relevant for this post
I agree cause we care.
ok ok ok I get it... Sorry for posting that... here is a little update: My laptop is working again (not 100% but its working) Idea changed a bit my plan is now to create a ground that is the same for the whole level and will be recreated every time the truck reaches the right side of the screen then every X meters (dont know how much distance) i am going to place a random hill, there will first be 2 differend hills to try this and later i will add more hills and maybe that when hill 1 is created only hill 2 or 3 can created after that and after hill 2 its only possible to create hill 4 or 5 and after 3 only hill 1 or 6 Here a picture of what i mean (just had a creative moment with paint) hope you can read it In the real game there will be more objects and the "hills" will be smoother and with some textures like maybe some water or a person standing aside of the road trafic signs etc. plan is to make a loop wich creates a world part after one before and make them fit together so there wont be things like first you have height 3 then fall down to ground then next thing is height 3 again truck size does not matter but here a example of how big the truck probeably will be (still working on it)
GaspTW GaspTW

2013/12/12

#
Okay, so what is your question?
There are more replies on the next page.
1
2
3
4