A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: [CS3] moving map

  1. #1
    Flash Incompetent ChaseNYC's Avatar
    Join Date
    Jun 2002
    Location
    new york city
    Posts
    693

    [CS3] moving map

    Hi, I'm working on a game and as part of the user interface there is a map, which is how the player gets from place to place; however, I'm having a little bit of trouble figuring out what the best way is to only display a 5x5 tile view of the map surrounding the player_mc... I was thinking I could use a mask maybe and literally move the map holding MC for each move but I am not sure if its the best way to do it... So far all my code is in an .AS file and I'm weary of putting stuff on the stage... You can see what I have in terms of the map so movement so far here: http://www.geocities.com/ihrimtest/test.html

    Small side question, how on earth do I get transparency on my imported bitmaps? T_T

    Thanks in advance,

    ChaseNYC
    mmm signature

  2. #2
    Pumpkin Carving 2008 ImprisonedPride's Avatar
    Join Date
    Apr 2006
    Location
    Grand Rapids MI
    Posts
    2,377
    1) Check out ScrollRect.

    2) The way I do it involves photoshop but basically what I do is hit ctrl+alt+shift+s ("Save for Web and Devices" in CS3) and then set the color I want to transparent in that dialog. Then save as png and import.
    The 'Boose':
    ASUS Sabertooth P67 TUF
    Intel Core i7-2600K Quad-Core Sandy Bridge 3.4GHz Overclocked to 4.2GHz
    8GB G.Skill Ripjaws 1600 DDR3
    ASUS ENGTX550 TI DC/DI/1GD5 GeForce GTX 550 Ti (Fermi) 1GB 1GDDR5 (Overclocked to 1.1GHz)
    New addition: OCZ Vertex 240GB SATA III SSD
    WEI Score: 7.6

  3. #3
    Flash Incompetent ChaseNYC's Avatar
    Join Date
    Jun 2002
    Location
    new york city
    Posts
    693
    thank you. solved all my problems simply scrollRect is amazing apparently.

    ChaseNYC
    mmm signature

  4. #4
    Pumpkin Carving 2008 ImprisonedPride's Avatar
    Join Date
    Apr 2006
    Location
    Grand Rapids MI
    Posts
    2,377
    Glad I could help, and yes, ScrollRect is awesome.
    The 'Boose':
    ASUS Sabertooth P67 TUF
    Intel Core i7-2600K Quad-Core Sandy Bridge 3.4GHz Overclocked to 4.2GHz
    8GB G.Skill Ripjaws 1600 DDR3
    ASUS ENGTX550 TI DC/DI/1GD5 GeForce GTX 550 Ti (Fermi) 1GB 1GDDR5 (Overclocked to 1.1GHz)
    New addition: OCZ Vertex 240GB SATA III SSD
    WEI Score: 7.6

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