|
Post by shelley on Jan 21, 2004 19:19:10 GMT -5
I am making a puzzle maze game and I need to get the ball to pitch with the scenery. the scenery pitches fine but the ball rotates and does not pitch. The ball is the player and the scenery is the maze. What I want it to do is pich and pick up speed as it goes. the traps for the ball work ok and so does the collsion. but when it pitch the ball just melts into the scenery. I put this on the rad board also LAter Shelley
|
|
|
Post by FDX on Jan 21, 2004 20:02:43 GMT -5
I'm litle misunderstend what pitch you r talkin about, but it seems that your problem is in ground boundary
|
|
|
Post by shelley on Jan 21, 2004 21:22:56 GMT -5
What I was tring to do is to get the ball and seanery to angle both ways like pitch and yaw of an aircraft. So when it tilts the ball also tilts and picks up speed like its going down hill. I tried to upload a screen shot but I could not get it to work.
|
|
|
Post by FDX on Jan 22, 2004 5:53:37 GMT -5
What I was tring to do is to get the ball and seanery to angle both ways like pitch and yaw of an aircraft. So when it tilts the ball also tilts and picks up speed like its going down hill. I tried to upload a screen shot but I could not get it to work. ok, as i understand, you want to make agame where you change an angle of platform and ball roles down on it andyou need to lead it trough a maze...
...ground comands are useless in this case... ..well... sin\cos_512()will help to adjust velocity...
|
|
|
Post by shelley on Jan 22, 2004 16:37:55 GMT -5
I can see where he was going with it I did try it but not great reselts problem is tring to read the angle of the moving maze. I think a position type command with the maze some how I tried it and if I did a set y it does go above and below. But when I do a temp=temp -10DG and position add y temp it does not goto the negitive LAter Shelley
|
|
|
Post by Spudrunner on Jan 23, 2004 0:24:05 GMT -5
|
|
|
Post by shelley on Jan 23, 2004 3:28:46 GMT -5
thats cool it is what I about what I am trying to do You can see a screen chot of the maze cut and past the ulr below geocities.com/weddbe/sc1.jpg
|
|
|
Post by Spudrunner on Jan 23, 2004 4:16:33 GMT -5
Update - Had a problem with wall collisions in that last demo. I fixed it now along with spin. Looks pretty good! I love that ball maze game.
|
|
|
Post by Spudrunner on Jan 23, 2004 4:37:17 GMT -5
Oh yeah had to fix another thing. It was egtting stuck on volumes sometimes so i added attract_xz to get it to bounce off again. Also, spins not quite right yet, needs to use something else instead.
|
|
|
Post by Spudrunner on Jan 23, 2004 11:04:10 GMT -5
I've updated this again. I changed using attract_xz cause it pushed the ball the wrong way sometimes so I used a position set by the x/z rotations and attract_point. It works well now after some other tweaking. I made my own maze just so I could test how the ball would react to all different angles. Looks pretty much like what happens in the real-life one! Hope that helps.
-spudrunner
|
|
|
Post by shelley on Jan 23, 2004 11:41:12 GMT -5
Yeah it was a great game I had one a long time ago. There are a lot of game like that I see you use the X files I been using the 3ds so far I just got rad for a xmas present. So I am still new at it Below is the code i used for the ball spin i use the x rotate But it went strange I had to put a limiter in it if you hit 6000 reset to 1 Thanks
thrust(element,sp) ;perform kinematics... velocity_update(element)
if sp>0;speed factor if rotation_x(element)<60000 spin_update(element) else rotation_x_set(element,1)
endif endif
|
|
|
Post by FDX on Jan 24, 2004 2:44:00 GMT -5
rotation_x_set(element,1) Rotation_x_add(element,1dg)
}EDIT{
oh, sorry, your code is ok, i just hadn't readed it curectly
|
|
|
Post by Spudrunner on Jan 24, 2004 3:51:23 GMT -5
Yeah, its a fun game. Although I haven't seen too many computer games like that recently. I use winconv3ds to create x files. Its a good tool by Microsoft to get the x format. You select the -o option and type in the output filename in the box beside with full extension, like name.x, also the -m option is useful for getting single meshs, can speed up framerate sometimes. I just noticed there, if I use 3ds for volume and then x for volume they use the opposite Flip Polygons option in Rad. Funny, I never spotted that before.
|
|
|
Post by Spudrunner on Jan 24, 2004 14:29:07 GMT -5
Well, it is going to rotate pretty slowly that, at 1 per tic. lol! ;D I had a look at using rotation_x_add/set instead of the one i used: spin_x_set. They seem to be pretty much the same thing (rotation and spin) except that you have to use spin_update with spin commands, and that spin turns more than rotation. So spin_x_set and rotation_x_add seem to turn exactly the same way, spin_x_add is faster, and rotation_x_set is slower.
|
|
|
Post by shelley on Jan 24, 2004 19:30:54 GMT -5
Yeah everybody writing space games, simulators or shootum ups ;D with almost real graphics. I remember a few of them that were never written for the computer I have about 12 game ideas I like to write and put out shareware I had download that program, winconv when I first got rad but never used it, Till today. I was useing the trial ver of milkshape now I am useing annim8 the free program. As for the flipping When I used milkshape I kept getting insideout Meshes even with the flipping in rad, In the RAD fourm one of the guys told me to flip it in milkshape so when I did that and then the flip in rad it worked ok. in ammi8 I don't have to flip anywhere so far. But when I tried the first mazes from milkshape in the winconv It was wrong face so I flipped them back in anni8 and they worked. When I first did the maze I was first trying to get the camerea to follow like the screen shot and I could not get it to tilt then but To see if it looked ok so I did a up down thrust with the rotation to see what it looked like It rotated fine and the thrust made it fly through the maze but again no tilting and stuff Oh Quick question did you look at the screen shot so I can take it down They don't give me to much space for free on geocities. and Thanks FDX for the comment LAter Shelley
|
|