Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 8 of 8

Thread: Game Dev help

  1. #1
    Join Date
    Dec 2007
    Posts
    2,807
    Tokens
    0

    Latest Awards:

    Default Game Dev help

    Ok so I've programmed a non-tile based isometric game but now I'm stuck on making it move correctly isometrically.

    Currently my character moves from one point directly to the other. However I now want to move him isometricly (2 points across for every one point down) so I will need to move him twice to get to the one point. Once going across and down and once going across and up, as shown in the diagram below. Does anyone have any idea how to calculate where point A is on the diagram? I've been racking my brains and can't think of a single trigonometric formula. So say if one point is (10,10) and the other (200, 100) how do I calculate where point A would be and where he changes direction.



    Thanks in advance,
    FlyDuo

    Thread closed by iAdam (Forum Moderator); Problem solved, and to prevent spamming.
    Last edited by iAdam; 01-08-2009 at 12:06 PM.

  2. #2
    Join Date
    Nov 2005
    Posts
    4,486
    Tokens
    921

    Latest Awards:

    Default

    What language is this game in? Could you post the current pathfinder code?
    "RETIRED" FROM HABBO(X)

    :¬:

    TOMSPIT / COWLY05


  3. #3
    Join Date
    Dec 2007
    Posts
    2,807
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by TomSpit View Post
    What language is this game in? Could you post the current pathfinder code?
    Objective-C. Currently there is just point to point code. Basically I need the pseudocode of how to calculate the location of point A.

  4. #4
    Join Date
    Dec 2007
    Posts
    2,807
    Tokens
    0

    Latest Awards:

    Default

    Ok, so at the moment I'm working out the equation of each line and now I need to work out their point of intersection. Usually you can just say one equation equals the other and work out x from there but you can't in programming so does anyone have another way to work out the point of intersection. Maybe by subbing in values?

  5. #5
    Join Date
    Dec 2007
    Posts
    2,807
    Tokens
    0

    Latest Awards:

    Default

    Problem solved!

  6. #6
    Join Date
    Nov 2005
    Posts
    4,486
    Tokens
    921

    Latest Awards:

    Default

    Quote Originally Posted by FlyDuo View Post
    Problem solved!
    Well done
    "RETIRED" FROM HABBO(X)

    :¬:

    TOMSPIT / COWLY05


  7. #7
    Join Date
    Dec 2007
    Location
    :vi /bin/LINUXGURU.txt; :wq
    Posts
    513
    Tokens
    305

    Latest Awards:

    Default

    I suggest using C++, more compilers etc and cores to help you in near future like Torque.
    Thanks,
    Nick
    ┌─┐
    ┴─┴
    ಠ_ರೃ

  8. #8
    Join Date
    Dec 2007
    Posts
    2,807
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by kickerbat View Post
    I suggest using C++, more compilers etc and cores to help you in near future like Torque.
    Do you have any idea what you are talking about?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •