A Flash Developer Resource Site

Page 2 of 2 FirstFirst 12
Results 21 to 32 of 32

Thread: Question

  1. #21
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,404
    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,864
    Nope, I have no idea as I don't know how SmartFoxServer functions
    I am back, guys ... and finally 18 :P

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

  3. #23
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,404
    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,864
    I dunno what you mean by the canvas, but just change the _y of the map :?
    I am back, guys ... and finally 18 :P

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

  5. #25
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,404
    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,864
    Why not offset the character by how many pixels you've moved the map??
    I am back, guys ... and finally 18 :P

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

  7. #27
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,404
    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,864
    Well, I'm out of ideas...
    I am back, guys ... and finally 18 :P

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

  9. #29
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,404
    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,864
    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..
    I am back, guys ... and finally 18 :P

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

  11. #31
    Designer, Programmer, Musician angelhdz's Avatar
    Join Date
    Mar 2010
    Posts
    971
    Canvas = Stage

  12. #32
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,864
    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
    I am back, guys ... and finally 18 :P

    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