Results 1 to 3 of 3

Thread: SetLimitToMapArea

  1. #1
    Lesser Wizard
    Join Date
    Mar 2008
    Posts
    124

    Default SetLimitToMapArea

    I have added the following line to game_start.lua in the treeworld example:

    GetCamera:SetLimitToMapArea(true);

    It has been added directly beneath the line:

    RunScript("gui/interface_utils.lua"); //from base


    However the camera will still pan around outside the playable area of the map. What am I doing wrong?

  2. #2
    Administrator Seth's Avatar
    Join Date
    Jul 2002
    Location
    Japan
    Posts
    5,377

    Default

    Hmm, I'll check it out. I remember I had the same problem with treeworld, might have because it has objects below/above the map area, I'll see what's up.
    Seth A. Robinson
    Robinson Technologies

  3. #3
    Lesser Wizard
    Join Date
    Mar 2008
    Posts
    124

    Default

    OK Cheers Seth. Let me know what the results are.

    FYI it is also happening on additional maps I have created, which doesn't have any objects on the map outside of the play area.

Bookmarks

Bookmarks

Posting Permissions

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