A Flash Developer Resource Site

Results 1 to 11 of 11

Thread: Help on Isometric golf

  1. #1

    Help on Isometric golf

    i am developing an Isometric golf, I have made it to isometric part and have the ball move around.

    my question now is this, what approach should I use in placing some objects (obstacles) on the map, and also i have plans of screen scrolling on it, can I use a tile based approach? or any other approach you can suggest.

    thanks in advanced..
    b3nch08

  2. #2
    Game Player - Developer scheletro's Avatar
    Join Date
    Mar 2005
    Location
    México living in Barcelona
    Posts
    1,122
    Can we see what you have till now?


    "I love to make them as I love to play them"

  3. #3
    here's the swf
    Attached Files Attached Files
    b3nch08

  4. #4
    additional question on how to do collisions when objects are round when tiled. is this possible?

    hope someone can help.. TIA
    b3nch08

  5. #5
    Student
    Join Date
    Apr 2001
    Location
    -
    Posts
    4,756
    circle with circle collisions is next to bounding box intersections one of the easiest.
    You just check for the distance of booth circles centers (not in screen coordinates but top coordintes). if its smaler as booth´s cicrles radians multiplied you have a collision,


    eg.:
    PHP Code:
    var dx ball.circle.x;//delta X
    var dy ball.circle.y;//delta Y
    var Math.sqrtdx*dx dy*dy);//distance of the 2 to each other hint: Pythagoras

    if ( <= (ball.radius circle.radius ){
        
    trace("hit!!");

    some usefull link I just googled searching for example images (it´s in dutch but has some more ideas- like adding speed and other variables)
    http://gertcant.wordpress.com/2008/0...ion-detection/

  6. #6
    is this applicable in isometric world?
    Last edited by b3nch08; 07-27-2008 at 12:20 PM.
    b3nch08

  7. #7
    Student
    Join Date
    Apr 2001
    Location
    -
    Posts
    4,756
    that depends how you´ve written your engine. In the past when I was more into static isometric stuff I always coded the engine so that it operated in world X,Y and perhaps Z axis so that collision, physics, placement, AI and many many more things were easier to imagine and solve.
    Working with screen coordinates is not efficient at all for iso stuff because you´d push more and more bricks in your way making things in the end just more complicated.

    kind of like this stuff:
    http://www.kirupa.com/developer/acti...ransforms3.htm
    the same applies to console iso or 3d game engines, where objects are placed using X,Y,Z coordinates and volume is defined with width, height and depth. The engine itselfs then plots those information to the 2d screen - just like in that tutorial.

    if you did your engine similar to what I just described it should be no problem.

  8. #8
    Senior Member
    Join Date
    Jun 2002
    Location
    Manchester, UK
    Posts
    2,357
    If the isometric tile ratio was 2:1 then you could simply half the y distance or, of course, double the x distance (but that would be a little less accurate)..

    The above method that render is talking about is even more acurate since then you'll have you x, y & z coordinates!!

    RipX

  9. #9
    Registered User
    Join Date
    Feb 2019
    Posts
    1
    Quote Originally Posted by b3nch08 View Post
    i am developing an Isometric golf, I have made it to isometric part and have the golf ball move around.

    my question now is this, what approach should I use in placing some objects (obstacles) on the map, and also i have plans of screen scrolling on it, can I use a tile based approach? or any other approach you can suggest.

    thanks in advanced..
    Which approach you had applied at that time. Tile based or the other one?

  10. #10
    Administrator Steve R Jones's Avatar
    Join Date
    Nov 2011
    Location
    Largo, FL.
    Posts
    133
    Quote Originally Posted by Jecksonheka View Post
    Which approach you had applied at that time. Tile based or the other one?
    Did you notice how OLD that post is?

  11. #11
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,404
    wow an ancient thread, well that shouldn't stop you from helping the user, I asked the developer a year ago on a thread to fix something and im still looking forward to that reply. Probably never the owner of the programs last logins 2 years ago.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center