JohnPapiomitis, since ur such n a good mode :p.....

QbAnYtOQbAnYtO Member Posts: 523
edited November -1 in Working with GS (Mac)
how to i make it so when on of my actors goes off screen to the left he respawns offscreen to the right. i'm creating a level with incoming obstacles and want my "obstacles" to come at my actor in random y positions but i want it to respawn off screen (on the right side) after it goes off screen (on the left).

i'm sure i gotta make a wall of death outside the screen (on the left) but how do i respawn it RANDOMLY (y axis) on the right side (offscreen)?

Comments

  • AsymptoteellAsymptoteell Member Posts: 1,362
    Just check the box for wrap x in the scene attributes.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    :)

    Theres a couple of ways. You can click scene at the top left then go into its attributes and check wrap x (that will do that to every actor on the scene though)

    Or you can have a actor offscreen to the left right up against where the scene starts and have it the height of the scene. Say we call it left wall. Then in the actor you want to change positions have a rule when actor collides with left wall, change attribute self position y to 510
  • QbAnYtOQbAnYtO Member Posts: 523
    but i wanna do it to just one actor not the whole scene, plus in random positions y axis). oh wait, i can just look into the included tutorials lol doik doik
  • QbAnYtOQbAnYtO Member Posts: 523
    yea i was right :p the shoot em up sample has a random spawner. thanks !
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    QbAnYtO said:
    yea i was right :p the shoot em up sample has a random spawner. thanks !

    Yep the shoot em up template will spawn actors on once side and when they get to the other side they destroyed. But doing it the 2nd way i described above will recycle them and not spawn anything. Its really up to you
  • QbAnYtOQbAnYtO Member Posts: 523
    i think recycle is more efficient :p

    now i'm trying to figure out how to have them individual collide when they reach my actor. when 3 of the same enemies collide with my character, they all get affected AT THE SAME time. instead of one by one :/ maybe i gotta make them different actors? instead of having 3 of the same actor on screen, should i just make 3 separate enemies and then try that? actually i just tried it and they still all react at the same time.. that weird.

    also some of my items are affected by gravity, which i don't want. i try unchecking "movable" but then they ...::drum roll please::: WON"T MOVE! (they are supposed to be coming in movement from the right to left..., the obstacles remember?)
Sign In or Register to comment.