Army game problems

Talk about making games.

Army game problems

Postby Novice » Tue Sep 20, 2005 10:16 pm

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: .
Why do i always get stuck?
User avatar
Novice
 
Posts: 399
Joined: Mon Aug 29, 2005 10:54 am
Location: Relative
Score: 5 Give a positive score

Postby CdaMarinersFan » Wed Sep 21, 2005 1:11 am

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...
User avatar
CdaMarinersFan
 
Posts: 109
Joined: Wed May 11, 2005 11:20 pm
Score: 0 Give a positive score

Postby Novice » Wed Sep 21, 2005 2:08 pm

Hope you figure it out soon before im forced to rip my head of :cry: .
But anyway thanks for trying.
Why do i always get stuck?
User avatar
Novice
 
Posts: 399
Joined: Mon Aug 29, 2005 10:54 am
Location: Relative
Score: 5 Give a positive score

Postby CdaMarinersFan » Wed Sep 21, 2005 7:30 pm

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.
Image
User avatar
CdaMarinersFan
 
Posts: 109
Joined: Wed May 11, 2005 11:20 pm
Score: 0 Give a positive score

Postby Novice » Thu Sep 22, 2005 5:51 pm

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
Why do i always get stuck?
User avatar
Novice
 
Posts: 399
Joined: Mon Aug 29, 2005 10:54 am
Location: Relative
Score: 5 Give a positive score

Postby Novice » Fri Sep 23, 2005 11:22 pm

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.
Why do i always get stuck?
User avatar
Novice
 
Posts: 399
Joined: Mon Aug 29, 2005 10:54 am
Location: Relative
Score: 5 Give a positive score

Postby makslane » Sat Sep 24, 2005 12:38 am

Use the animpos variable to change the current animation frame.
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Novice » Mon Sep 26, 2005 8:29 am

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.
Why do i always get stuck?
User avatar
Novice
 
Posts: 399
Joined: Mon Aug 29, 2005 10:54 am
Location: Relative
Score: 5 Give a positive score

Postby CdaMarinersFan » Mon Sep 26, 2005 11:50 pm

Looks like you're gonna have to take out a loan :)
User avatar
CdaMarinersFan
 
Posts: 109
Joined: Wed May 11, 2005 11:20 pm
Score: 0 Give a positive score

Postby Novice » Tue Sep 27, 2005 8:10 pm

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.
Why do i always get stuck?
User avatar
Novice
 
Posts: 399
Joined: Mon Aug 29, 2005 10:54 am
Location: Relative
Score: 5 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest