Blow fly on rubbish animation

What's a good expression to have a fly (A couple of pixels really) hovering over a pile of rubbish - maybe in a figure eight. One of the cos, sin, tan guys should know.

Best Answers

  • SocksSocks London, UK.Posts: 12,822
    Accepted Answer
    Constrain self.position X to . . .
    HorizontalRangeOfFly*cos( game.Time *280)*cos( game.Time *333)+WhereYouWantTheFlyToOrbitX


    Constrain self.position Y to . . .
    VerticalRangeOfFly*sin( game.Time *384)*sin( game.Time *199)+WhereYouWantTheFlyToOrbitY
  • SocksSocks London, UK.Posts: 12,822
    Accepted Answer
    Example . . . . (attached)

Answers

  • blue_elephantblue_elephant Member Posts: 505
    Does it have to be an expression? Why not just an animation of it moving in a figure eight?
  • DoguzDoguz Member Posts: 500
    That work be ok. But an expression would be better. The actor is really just a 2x2 black actor. And I could put a few flies buzzing around.
  • DoguzDoguz Member Posts: 500
    @Socks. That mutherf@&*ing fly is awesome. Thanks. Knew you'd have a nice solution.
  • SocksSocks London, UK.Member Posts: 12,822
    edited October 2013
    If you want an actual figure of eight you just need one orientation/direction (either horizontal or vertical) to be moving at twice the speed of the other orientation . . . if that makes sense.

    So something like this:

    80*cos (game.Time*400)
    80*sin (game.Time*800)
  • SocksSocks London, UK.Member Posts: 12,822
    edited October 2013
    I see the forum is still deleting attachments if the post is accepted as an answer. A quick-fire way to render lots of threads irrelevant to future users browsing for info, jeez this forum software is so laughably awful, I can't stay logged in for more than a couple of posts (it's been like that for a couple of years), and after months of the issue being pointed out attachments are still deleted if the post is chosen as the answer.

    image :))
  • mataruamatarua Auckland, New ZealandMember Posts: 854
    @Socks yep 'Vanila' might be not just plain but plain awful huh.
  • mataruamatarua Auckland, New ZealandMember Posts: 854
    The jokes - no flies on you.

    Any more?

    hehe :))
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited October 2013

    I think the Vanilla forums fly in the face of reason... :P
  • quantumsheepquantumsheep Member Posts: 8,188

    I think the Vanilla forums fly in the face of reason... :P
    I saw what you did there...

    I SAW! :O

    QS =D
  • LumpAppsLumpApps Member Posts: 2,881
    Quoting the Chinese rapper: "Do flies go with that Vanilla Shake."
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598

    I think the Vanilla forums fly in the face of reason... :P
    I saw what you did there...

    I SAW! :O

    QS =D
    No getting anything past you sheepies of the quantum sort... :D
    Quoting the Chinese rapper: "Do flies go with that Vanilla Shake."
    That might not be "PC" in today's world, but I had to rarfe...whoops, I mean, laugh... :))

    OK, I'd better not mention any more otherwise I'll be the fly in the ointment... I'd better buzz off now...
Sign In or Register to comment.