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

Report as inappropriate.

jrlowe
jrlowe presents ...

2012/12/31

GTA 2D

This is a GTA clone that I am working on. It is a top down version.
**********************
Controls-
W,S,A,D move/steer
F enter car
G exit car
hold space to run

4608 views / 8 in the last 7 days

6 votes | 0 in the last 7 days

Tags: mouse game simulation shooter physics demo uaslp topdown korea sandbox

Your browser does not support the canvas tag.
davemib123davemib123

2012/12/31

looks cool
AermusAermus

2013/10/24

hi there! How did you managed to get the player into a car? and then driving the car with the same movement as the walking player..??
BaenefinBaenefin

2013/10/25

Awesome, it's so like gta :) How did you get the world to stop scrolling on the left?
SkrienerSkriener

2013/11/2

Hello, I like your game. I'm trying to make something similar with spaceships. Can i see your code pls?
I am trying the same thing, can you provide me withh this code please. Below is my code for moving stepping in and driving but can;t sep out. ------------------------------------------- import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Autodief here. * De autodief is opzoek naar burgerautos die na het stelen naar de garage worden gebracht om te worden verkocht. * *Groep J (Kasim, Richard & Wesley) * Versie4 2/11/2013 */ public class Autodief extends Speler{ private int count = 0; private boolean foundcollison; private int character = 0; private GreenfootImage[] runningAnimation; private GreenfootImage[] instappenAnimation; private GreenfootImage standardImage; private int currentRunningAnimation; private int runningAnimationDelay = 0; private int currentinstappenAnimation; private int instappenAnimationDelay = 0; private boolean touchingAuto = false; public Autodief() { animeerAutodief(); } public void animeerAutodief() { runningAnimation = new GreenfootImage[7]; for (int i = 1; i < 7; i++){ runningAnimation[i] = new GreenfootImage("0-" + i + ".png"); } instappenAnimation = new GreenfootImage[7]; for (int i = 1; i < 7; i++){ instappenAnimation[i] = new GreenfootImage("0-" + i + ".png"); } standardImage = new GreenfootImage("0-0.png"); } public void act(){ SpelerBesturing(); DiefAnimatie(); bestuurder(); checkKeyPress(); animateRunning(); } public void animateRunning(){ if (currentRunningAnimation == 7){ currentRunningAnimation = 1; setImage(runningAnimation[currentRunningAnimation]); } else{ setImage(runningAnimation[currentRunningAnimation]); currentRunningAnimation++; } } public void checkKeyPress() { if(Greenfoot.isKeyDown ("p") ) move(1); if(Greenfoot.isKeyDown ("o")) move(-1); if(Greenfoot.isKeyDown ("l") ) // setImage("diefL.png"); turn(4); if(Greenfoot.isKeyDown ("k")) // setImage("diefR.png"); turn(-4); } public boolean bestuurder() { Actor StolenCar = getOneIntersectingObject(GestolenAuto.class); if(StolenCar != null) { return true; } else { return false; } } public void DiefAnimatie(){ if (Greenfoot.isKeyDown("w")){ setImage("diefu.png"); } if (Greenfoot.isKeyDown("a")){ setImage("diefl.png"); } if (Greenfoot.isKeyDown("d")){ setImage("diefr.png"); } if (Greenfoot.isKeyDown("s")){ setImage("diefd.png"); } } } //no effect 28-11-2013 // public void Stelen(){ // if (Greenfoot.isKeyDown("e") && character == 0 && bestuurder()){ // character = 1; // //getWorld().removeObject(this); // } // } //no effect 28-11-2013 // public boolean foundcollison(){ // Actor Politieauto_move = getOneObjectAtOffset(0, 0, Burgerauto.class); // // if(Politieauto_move != null) { // return true; // } else { // return false; // } // } /// // // /** * De auto wordt bestuurd. */// public void besturing() // { // if (Greenfoot.isKeyDown ("up")&& character == 0) //{ /// move(1); //if (getImage() == dief1){ // setImage(dief2); // }else{ // setImage(dief1); // } // } //if (Greenfoot.isKeyDown("down")&& character == 0) // { // move (-1); // if (getImage() == dief){ // setImage(dief1); //}else{ // setImage(dief); // } //} //if (Greenfoot.isKeyDown("left")&& character == 0) //{ // turn (-5); // } //if (Greenfoot.isKeyDown("right")&& character == 0) //{ // turn (5); //} // } //public boolean driver() //{ // Actor StolenCar = getOneObjectAtOffset(0, 0, StolenCar.class); //if(StolenCar != null) { // return false; //} else { // return true; //} // } /// /// /// //
mohd95mohd95

2013/12/4

can you upload this game to green-foot so people can download it

Want to leave a comment? You must first log in.

Who likes this?

Aermus Baenefin JetLennit Game/maniac nightwingx13 davemib123