dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: _xscale

  1. #1
    Junior Member
    Join Date
    Aug 2004
    Location
    Sydney
    Posts
    6

    _xscale

    I'm trying to make the fish flip when it's goin the other direction. But can't seem to get it
    Attached Files Attached Files

  2. #2
    Novemberain Master
    Join Date
    Sep 2004
    Location
    Void
    Posts
    390
    Add one line to newpos() function so it will look this way:
    Code:
    newpos = function () {
    	ranx = Math.round((Math.random ()*800));
    	rany = Math.round ((Math.random ()*600));
            // Added string below
    	if(this._x <= ranx) this._xscale = 100; else this._xscale = -100;
    }


    Never give up...

  3. #3
    Junior Member
    Join Date
    Aug 2004
    Location
    Sydney
    Posts
    6
    You legend ^^

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