Page 1 of 1

Army game problems

PostPosted: Tue Sep 20, 2005 10:16 pm
by Novice
Hi. Tanks for reading tihs :D.

Im trying to make a sideview game in wich the player controls an army ampibious veachle.
- My first problem is that the veachle needs to go up and down hill, so i made animations from -15 to 15 degrees. But the metod i tried isnt working very well, i made an invisible actor with gravity and colision with ground and then i calculated the angle between the veachle and that actor but that doasent work very well because it allways gliches and shakes up and down eaven on flat terain. Is there a better way to do this or a tutorial?
Image
-My second problem is that i made three tires so they can cross over bumps and stuff and they look realy cool going downhill :).
I didnt parent them to the veachle i just did (tire.x=veachle.x-20 for the last one...) that works kinda good but there is always a 1-2mm lag. The other problem with this is that sometimes the tires shake violently when standing still.
-Sorry for doing this but there is a third problem. I took the average height ((tire1.y+tire2.y+tire3.y)/3) of the tires and made that the height of the veachle but the same problem hapens as with the tires sometimes it starts shaking violently. This may be related to the first two problems but i wouldnt know :oops: .

Thanks in advance for any adivice, and sorry if this subject has posted somwhere because i wasnt able to find it :roll: .

PostPosted: Wed Sep 21, 2005 1:11 am
by CdaMarinersFan
Hmmm... I will need to read C for Dummies for more of that information. It definitely helps with scripting... I would try to help you with that once I figure it out...

PostPosted: Wed Sep 21, 2005 2:08 pm
by Novice
Hope you figure it out soon before im forced to rip my head of :cry: .
But anyway thanks for trying.

PostPosted: Wed Sep 21, 2005 7:30 pm
by CdaMarinersFan
Hey, I had a very hard time figuring out how to get my count down timer to work, but with some assistance, I got it to work! So don't worry, we'll figure it out, soon.

PostPosted: Thu Sep 22, 2005 5:51 pm
by Novice
I think im going to go buy C for dummies tomorow. I should realy get to know C it will make my lofe easier.
Hey here is a picture, last link didnt work dont know why. Hope you like it.
Image
I yet have to make anything elese, but first i have to know i can make this game work. Hope you like the pic. :D

PostPosted: Fri Sep 23, 2005 11:22 pm
by Novice
Ok i bought the book, not exactly that one but it dosent mater it helped. 8)
I sucesfully made it stop shaking violently by doing this
Code: Select all
if (veachle.xvelocity !=0) y=y+5;

so i get the whells to stick to the ground and not to shake when standing still.
But one problem still remains :cry: .
How can i solve this :?: :
I have two actors lets call them back and front.
I callculate the angle betwen them
Code: Select all
int veachleangle = direction(back.x,back.y,front.x,front.y);

Now this is the important part :!:
How can i make my +-15 degre animation respond properly to angles?
Becaue i just cant make it work.
It has 11 frames starting from -15 and geting to 0 at fifth frame.
Anyone please please help, id be very very very very gratefull.

PostPosted: Sat Sep 24, 2005 12:38 am
by makslane
Use the animpos variable to change the current animation frame.

PostPosted: Mon Sep 26, 2005 8:29 am
by Novice
Im already using the animpos variable. But the scripts that i use just make funky animations with lots of glitches. Anywhay my demo expired so it wont make any diference now. Il just have to wait till i get some money.

PostPosted: Mon Sep 26, 2005 11:50 pm
by CdaMarinersFan
Looks like you're gonna have to take out a loan :)

PostPosted: Tue Sep 27, 2005 8:10 pm
by Novice
Its not the money, i dont have a credit card so i have to make my dad pay but he dosent trust the internet blah blah blah... Hope il talk im in to it soon :cry: . GE is realy great and i dont want to stop using it.