Alice Community

Alice Community (
-   How do I...? (
-   -   help with simple game (

gpdrummer13 04-30-2009 07:39 PM

help with simple game
im making a simple car game for a school project. the point of the game is to drive down the street and hit ramps. But i cant get he car to jump when the car comes in contact with the ramps. any help on this would be greatly appreciated

HisWorld 05-01-2009 01:16 AM

This is a problem with collosion detection.

once your vehicle is within an approriate distance from a spot on the ramp you will want the vehicle to no longer move horizontal with the ground.

You need some logical statement that rotates your car the right amount to make it apear to be running on the ramp.

gpdrummer13 05-01-2009 05:23 PM

im very new to this so i dont if this sounds stupid but what do you mean by "logical statement"

HisWorld 05-01-2009 08:13 PM

maybe i should have said "conditional" statements i.e. using if - else, or while

dubastot 05-03-2009 07:38 PM

I know how to get the if/else stuff, but how do you make it actually work. In my project I put if my vehicle got 0metres above from a cylinder, it would do my first method, but nothing happened

gpdrummer13 05-03-2009 08:49 PM

i have the same problem

RockyTheConcreteDonkey 05-04-2009 06:00 PM

somthing Ive found works is...
While car is withing # meters of ramp, then do Action

same applys for if else just remember to loop the action infinite times

gpdrummer13 05-04-2009 07:24 PM

[FONT="Impact"]it didnt work[/FONT]

HisWorld 05-04-2009 07:53 PM

reply with an attachment containing your game file and I will see if you are on the right track.

gpdrummer13 05-05-2009 08:34 PM

i finally got it to work, thanks guys

All times are GMT -5. The time now is 09:18 AM.

Copyright ©2021, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.