A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [F8] possible hittest?

  1. #1
    Junior Member
    Join Date
    Jun 2007
    Posts
    4

    [F8] possible hittest?

    okay guys, quick question.

    i'm currently working on this game which requires the player to shoot down objects that hits the screen with the mouse cursor. these obstacles will increase in size gradually (from the distance) before it comes in 'contact' with the screen, so as to give the illusion of distance.

    problem is, how do i decrease the speed of the obstacles travelling towards the player? so that he will have more time to shoot 'em down / react before they actually hit the screen.

    thanks!

  2. #2
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,755
    how do you have the speed set up currently?

    You could try to EASE the movement to slow down as it gets closer.

  3. #3
    Junior Member
    Join Date
    Jun 2007
    Posts
    4
    Thanks for the reply!

    What do you mean by easing the movement?

    Motion - By animating.

    Also, is there a way I could randomise the appearance of the obstacles hitting the screen? Such that as the game progresses, the no. of obstacles hitting the screen increases.

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