User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 19

Thread: Making a racing car skid

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Oct 2007
    Location
    UK
    Posts
    306
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Making a racing car skid

    Hi all,

    About a week ago I started making an engine for a top-down racing car game(one that I'm also using for an Isometric version in the lines of Rock N' Roll Racer). I've got the player car and 3 AI cars going around the track, but I've just realised something is missing: the cars don't skid or drift a little when turning corners.

    It's the first time I've attempted making a car game, but I'm guessing I somehow have to change the centre of gravity on the cars. So I've made an invisible car(controlled by the player) that's slightly in front of the visible player car. I'm then trying to get the visible car to float towards or follow the invisible one - so it creates a drift/skid effect. I've had some success, but the cars(visible and invisible) don't always line up correctly when they come to a stop.

    Could someone provide a method - or example - on how to do something like the above. Thanks.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Oct 2007
    Location
    UK
    Posts
    306
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    This may make things a little more clear:

    prob1.jpg

    Really it's not that much of a problem - as it doesn't interfere with the gameplay - but I'd have liked to have solved it.

    Does anyone have any different methods or examples that I could use to make a car seem as though it's skidding/sliding on the track. THX.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    happygreenfrog's Avatar
    Join Date
    May 2011
    Location
    I.L.T.D.O.I.R (I.L.T.D.O.I.R's Location: The Dimension Of Infinite Recursion)
    Posts
    4,307
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Well, MMF2.5's physics movements might be able to do it easily, so, if you don't mind waiting until tomorrow, then someone might be able to whip up something for you then in MMF2.5. As for MMF2, however, I personally don't know how to do it.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Oct 2007
    Location
    UK
    Posts
    306
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the reply happygreenfrog. If nobody posts anything, I'll wait to see what 2.5 brings (I'm hoping the physics in 2.5 can handle stuff like that. Also hoping it's easy to rotate the screen. If it is, then should be able to make some sweet racing type games.)

  5. #5
    Clicker Fusion 2.5Mac Export Module
    Zem's Avatar
    Join Date
    May 2012
    Location
    UK
    Posts
    184
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I can't help sorry but I like the art style

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Oct 2007
    Location
    UK
    Posts
    306
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the comment on the art, Zem. The background was easy enough to do, but the 32 directions on the iso placeholder cars was a pain. Anyway, I still haven't solved the "problem", but the engine is coming along nicely

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Oct 2007
    Location
    UK
    Posts
    306
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Thought I'd post this here.

    I have my cars going around the track and, when they pass the chequered flag, it sets their current lap. But what I can't get my head around is identifying which car came first, second, third and fourth on each lap.

    Ideally, I'd like to be able to check which car is in the lead, and so on, throughout the game play; so if the red car overtakes the blue car or the blue car overtakes the green, state which position the cars are in.

    On the face of it, it seems easy(and it probably is), but I just can't get my head around what to do. Anyone solutions to this?

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    DaveC's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Australia
    Posts
    2,117
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    You could place checkpoint detectors all around the track, when the car hits the checkpoint it sets a value then targets the next checkpoint in a linear fashion.

    You could then check which lap+which checkpoint each car is up to, then if 2 or more cars are on the same lap and targeting the same checkpoint, you could calculate the distance from each car to the checkpoint to see who is closest (who is in front)

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Oct 2007
    Location
    UK
    Posts
    306
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Thanks DaveC. Today I tried something similar to your first suggestion where I have the cars adding a value to the detectors(same detectors I use to count the laps and prevent the player cheating).

    As the car passes over the detector, I'm adding a value of 1 to the detector - and the detector value is then given to the car; so the first car to pass gets a value of one and the second car gets a value of two and so on. Once the fourth car passes, the detector value is reset ready for the next time the cars pass. But then I ran into a problem: if I go in the opposite direction over a detector, it gives me 1st place when I was 4th. So I end up with two cars in 1st place.

    Any suggestions or examples welcome.

  10. #10
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    paobrasil's Avatar
    Join Date
    Apr 2012
    Location
    Rio de Janeiro, Brazil
    Posts
    1,149
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you making a race game? wooow....that is amazing....I wish to know how to build the opponents cars AI....seems to be very complex...

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Making a Racing Game, and other odds and ends.
    By cchapeton in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 16th July 2010, 12:02 AM
  2. Isometric Racing
    By DistantJ in forum Multimedia Fusion 2 - Technical Support
    Replies: 35
    Last Post: 12th June 2009, 04:20 PM
  3. 3D Racing?
    By SuperKirby64 in forum The Games Factory 2 - Technical Support
    Replies: 0
    Last Post: 2nd December 2008, 01:46 AM
  4. Racing cars
    By Robin_Manager in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 10th July 2008, 07:27 AM
  5. Racing
    By Henderman312 in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 25th July 2007, 02:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •