Page 1 of 2
In need of professional help
Posted: Thu Sep 19, 2013 9:28 am
by Pot Noodle
Hi guys,
I am struggling with the game i have been working on for some time now.
I am looking for someone to try and sort out a problem i have
implementing drift on corners, i have had it working but with a problem.
if anyone has the time to look at my code and help i would be grateful.
Regards
Re: In need of professional help
Posted: Mon Sep 23, 2013 1:30 pm
by Pot Noodle
This forum never fails to disappoint, not one reply suggestion or comment.
Thanks for the time taken to read it at least that's one thing i guess.

Re: In need of professional help
Posted: Mon Sep 23, 2013 1:50 pm
by Fred
Well, if no one has a solution or tip, what's the point to post an answer ? No need to be angry about it.
Re: In need of professional help
Posted: Mon Sep 23, 2013 3:20 pm
by IdeasVacuum
I think you need to give more info Pot Noodle - at the moment, your description is a bit vague and you give the impression that all of your code needs review, without indicating just how much code that is - so, not sure about others but my first thought was "sounds like it will take a lot of hours". Time is something that most developers don't have.

Re: In need of professional help
Posted: Mon Sep 23, 2013 11:05 pm
by marc_256
Pot Noodle,
Is it a 2D or 3D game ?
OGRE or not ?
Canvas or Screen mode ?
...
Marc,
Re: In need of professional help
Posted: Mon Sep 23, 2013 11:55 pm
by Thade
Pot Noodle wrote:
if anyone has the time to look at my code and help i would be grateful.
Regards
I suggest that after that statement, everybody who wants to help is waiting for the code ... where is it?
Re: In need of professional help
Posted: Tue Sep 24, 2013 10:38 am
by Pot Noodle
First off let me apologize for my comment, it's not like me but i think this project of mine
is a bit more than i bargained for.
when you are writing something and you get stuck and your not sure how to put the problem
in to words it's very hard to explain, just as hard to fix as well, so forgive me
As for the game problem it is a 2D rep of the old Amiga XJ220 car game and the problem i have
is a pause with this line of code
Code: Select all
jPlayerX - (jSpeed*(BottomSegDX)*3.0)
The car is supposed to go into a corner and drift depending on the speed it is going.
but this one works but with a pause just as it goes in to the corner.
a car would go off road if you did not turn the corner, mine pauses for a second and then goes off road.
I hope i have summed it up ok, here is the game/code.
https://dl.dropboxusercontent.com/u/71849177/XJ220.rar
Re: In need of professional help
Posted: Wed Sep 25, 2013 11:11 pm
by True29
Hey , its hard to find such bugs for other people.
The best way is to find by your self
Have you found the bug ?
greets.
Re: In need of professional help
Posted: Thu Sep 26, 2013 12:53 am
by Pot Noodle
I think the BUG is down to (jSpeed/2) in this bit of code.
Code: Select all
NewSegZ - (jSpeed/2); <-- BUG Remove "/2" and no more pause
;
If NewSegZ < = 0.0; NewSegZ never = 0, always < than 0, "-7.000" this could be the pause
;
BottomSegDX = NewSegDX
;
NewSegZ = jZMap(ROAD_LINES)
;
Select jTrackData(Random(2))
Case 0 : NewSegDX = 0
Case 1 : NewSegDX = fDX
Case 2 : NewSegDX =-fDX
EndSelect
EndIf
If it was just "NewSegZ - jSpeed" then NewSegZ would = 0 and it would update 2 or 3 frames earlier
The down side to this is the road curves to fast.
Re: In need of professional help
Posted: Sat Sep 28, 2013 1:29 am
by Pot Noodle
Still no luck with this problem, having tried everything i can think of.
Don't think it's a bug in the code i just think it needs more code to do the job.

Re: In need of professional help
Posted: Sun Sep 29, 2013 9:20 pm
by Pot Noodle
I was wondering if someone could test this for me and give feedback.
I still think it needs work.
Thanks
https://dl.dropboxusercontent.com/u/718 ... _XJ220.exe
Re: In need of professional help
Posted: Mon Sep 30, 2013 9:32 pm
by marc_256
Hi,
Tested, WIN8 x64.
Works well, but ...
- There are some turns who takes a long time (i mean more than 360 deg) what seems to be unlogic if I not cross the road again)
- With the same turns, the background is not following the rotations / direction of the car.
Good work.
Marc
Re: In need of professional help
Posted: Tue Oct 01, 2013 2:29 am
by flaith
Hi Pot Noodle,
I tried to play with it, but which are the keys I need to use ?
Re: In need of professional help
Posted: Tue Oct 01, 2013 12:59 pm
by marc_256
Hi flaith,
For what I found ...
Mouse Left/Right = Car rotation
Mouse button left = accelerate
Mouse button right = Breaks
Marc,
Re: In need of professional help
Posted: Wed Oct 02, 2013 7:04 am
by flaith

Thanks Marc
So I tried and didn't find any bug
Well done btw
