Make Object Start In The Middle Of My Screen And Move To 1/4 Corner At Random

Discussion in 'How Can I...?' started by Manitoba, Oct 21, 2016.

  1. Manitoba

    Manitoba Boxer

    Joined:
    Oct 12, 2016
    Messages:
    18
    Likes Received:
    6
    I want to be able to have something like 4 shooting stars start in the middle of my screen and shoot out to a random corner of the screen.
    How would i accomplish this?
    Is it a case of playing with angular velocity until i am happy or can i dictate a path? how can i stop it from shooting off to the side of my screen? i just want it to go to the top left right and botton left right

    I hope that someone can see what i mean and possibly help me with this
    Many thanks!
     
  2. jerry

    jerry Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    421
    Likes Received:
    232
    What is the shooting star? Is it an enemy or the main character?
     
  3. Manitoba

    Manitoba Boxer

    Joined:
    Oct 12, 2016
    Messages:
    18
    Likes Received:
    6
    The shooting star is an enemy
     
  4. khalid

    khalid Avid Boxer

    Joined:
    Feb 17, 2016
    Messages:
    343
    Likes Received:
    67
    dirty solution
    1. in the center put your star add spawner
    2.next to it add another object make it transparent and decoration with high angular velocity
    3. connect to the rotating object four transform logic with liner velocity x y to shoot each child to the proper corner (left top may be like -15 15)
    4. on each corner set another logic to stop the star
     
    Phill Mason likes this.

Share This Page