Welcome to Phrogram Sign in | Join | Help
in Search


Universe

Last post 11-16-2008, 8:18 PM by Da Phrogger. 21 replies.
Page 2 of 2 (22 items)   < Previous 1 2
Sort Posts: Previous Next
  •  08-08-2008, 11:16 AM 7023 in reply to 7022

    Re: Universe

    It worked alright, Music right thru to it being like something you would see on your PlayStation or XBox in a way. But you must forgive me - I am not exactly a gamer, my son is the gamer and he has not tested it yet!

    But as for learning...ermm I would say you are learning extremely well!

    Best of luck into continuingly evolving your game!

    PS From experience it has always been easy-ish, once you have learnt a lot of code (I'll say easy-ish loosely!) to get a game up and running from beginning to end, however making it work properly has always been harder and longer!)

    Have fun!


    TomDad. Tom is my son...and I'm his Dad. So we are TomDad Software.
  •  08-08-2008, 8:17 PM 7025 in reply to 7023

    Re: Universe

    O.K, thanks much for the advice.

     About it being easy-ish... I have understood this from since the beginning of me making the game. The problem lies with the A.I of the computer and my inability to adjust his turning capabilities. When I first started writing the code which makes the computer turn towards you so it can fire at you, I realized that from the methods i was given for a 3D model there is absolutely no way to make a model turn towards another model by a fixed amount. Instead I had to make do with the computer rotating only a fraction of the arc to facing the target. In reality, using this method, the computer will never actually be 100% facing the target, making for very "unrealistic-looking" turns(since in one turn the computer will suddenly spin 90 degrees and in another will rotate only 1 degree based on how close he is to facing you) and either an extremely hard or extremely easy opponent in a dogfight. I chose the very easy option.


    I wonder... do phrogs eat phlies????
  •  11-07-2008, 9:02 PM 7337 in reply to 7025

    Re: Universe

    This is an old topic but I am curious... does anybody have a solution to the problem I described in the above post? A new method I haven't found yet perhaps or a totally new way of doing it? This is the only thing that prevents my game form becoming extremely competitive and it is constantly bothering me that I cannot fix it.

    I wonder... do phrogs eat phlies????
  •  11-08-2008, 7:53 AM 7338 in reply to 7337

    Re: Universe

    You can manually set rotation values using Model.Direction.<X/Y/Z>. Not sure, but I think they are local transforms ( relative to the model, not the world ).

    The help file says that Model.Direction is a 3D Vector - the help file is wrong here. Whereas a 3D vector is a set of position values, Model.Direction is a set of 3 rotation values ( X, Y, Z ).

    Using Model.Direction is not as simple as it should be. The angles are not measured in degrees ( or radians?? ). To set a rotation value, you need to multiply a degrees value by PiOver180:

    Var PiOver180 as decimal = ( Math.Pi / 180 ) // This should be a global variable, so you only have to make the division once

    Model.Direction.X = <degrees> * PiOver180

    Not sure how to get the value in degrees though... Maybe Model.Direction.X / PiOver180?

    Hope this helps.

  •  11-13-2008, 4:55 PM 7377 in reply to 6796

    Re: Universe

    I know this post is kind of old, but I was wondering... Could you put the source code of your game in a text file and upload it here?


    (\ _/)
    (- . -) This is bunneh. Copy and paste him to
    (")-(") your signature, so that he may gain popularity and eventually rule the world
  •  11-14-2008, 8:50 PM 7381 in reply to 7377

    Re: Universe

    sorry for late response. I have been playing runescape too much lately =P very addicting. Anyway I could put the code here but it is 2000 lines so im not sure i should. Here is a link to download the program and source files though. I wish I could just make it an exe file but I'm not willing to invest the 30-40 odd dollars to do that since now I'm trying to move on to Java.

    http://www.mediafire.com/download.php?neijvzhpb4v


    I wonder... do phrogs eat phlies????
  •  11-16-2008, 8:18 PM 7385 in reply to 7338

    Re: Universe

    O.K. dragonrider, I read your post but im still confused. I don't fully understand what your trying to say but from what I do understand, it doesn't quite sound like what I want. Does doing what you saying turn the 3dModel x amount of degrees in z direction or is it something else...

    I wonder... do phrogs eat phlies????
Page 2 of 2 (22 items)   < Previous 1 2
View as RSS news feed in XML