A Flash Developer Resource Site

+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 21 to 32 of 32

Thread: Question

  1. #21
    Is the best Alloy Bacon's Avatar
    Join Date
    Apr 2011
    Posts
    327
    No, its a mess, I was thinking about just having medium sized maps that only require slight canvas movement, do you know how I can tween the canvas, ill also tween the tool bar with it.

    I think if this were possible itd be way more efficient and i'll still have button navigation
    but I can have slightly larger rooms, you get me?

  2. #22
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,770
    Nope, I have no idea as I don't know how SmartFoxServer functions
    17 Years old boy, who loves the Computer Technology

    BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS

  3. #23
    Is the best Alloy Bacon's Avatar
    Join Date
    Apr 2011
    Posts
    327
    nooo, it has nothing to do with smart fox I even abandoned it though im using my own socket server I made using a tutorial, I just want to know lets say my character hit tests a certain object than the screen would move up acouple of pixels as in screen I mean the canvas or what ever you call it.

  4. #24
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,770
    I dunno what you mean by the canvas, but just change the _y of the map :?
    17 Years old boy, who loves the Computer Technology

    BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS

  5. #25
    Is the best Alloy Bacon's Avatar
    Join Date
    Apr 2011
    Posts
    327
    Forget it, If I change the _y and _x of the map the server will still see the character on the same x y position so itl look weird, I dont think you'd understand but w.e i'll figure something, thanks

  6. #26
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,770
    Why not offset the character by how many pixels you've moved the map??
    17 Years old boy, who loves the Computer Technology

    BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS

  7. #27
    Is the best Alloy Bacon's Avatar
    Join Date
    Apr 2011
    Posts
    327
    I already thought of that, the game would look for the person moving, but for another player on the game it will look odd because the maps moving for them not for you.

  8. #28
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,770
    Well, I'm out of ideas...
    17 Years old boy, who loves the Computer Technology

    BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS

  9. #29
    Is the best Alloy Bacon's Avatar
    Join Date
    Apr 2011
    Posts
    327
    Is the only way to move the canvas by using vcam?

  10. #30
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,770
    vCam only uses _xscale, _yscale, _x and _y to reposition and rescale the current movieclip it's in, so you should be able to manually use those properties to do it..
    17 Years old boy, who loves the Computer Technology

    BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS

  11. #31
    AS2 Coder
    Join Date
    Mar 2010
    Posts
    607
    Canvas = Stage

  12. #32
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,770
    oh, thanks angelhdz, I was a bit confused what he meant by Canvas XDXD

    In that case, use _root, which is the "canvas", the stage itself:

    _root._xscale
    _root._yscale
    _root._x
    _root._y
    17 Years old boy, who loves the Computer Technology

    BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS

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