What is the position coordinates to spawn an actor to fill the whole screen

Hello

I am to trying to have a rule where if you press one actor then another actor spawns in and fills the whole screen. but the problem is that the first actor moves here and there so when the one actor spawns it spawns to the first actor and is not completely filling the screen anymore. i want it to stay covering the screen and not spawn where the originally actor is. i hope this is not confusing to you guys.

Thanks

Comments

  • ArmellineArmelline Member, PRO Posts: 5,421

    You seem to be wanting contradictory things. If an actor fills the whole screen and moves, it seems unavoidable that it will no longer fill the whole screen.

  • SLOCM3ZSLOCM3Z Member Posts: 797
    edited December 2015

    Make the spawner that moves do:
    when touch is pressed inside
    :do:
    spawn actor (in the first square box) 240 (or half the length of your scene) relative to: "scene" (second box) 160 (or half the height of your scene) relative to: "scene"

    This is what I am understanding you need.

    Edit: You'll also want to have the actor you are spawning the size of the scene width and height.

  • reginald.bernardinreginald.bernardin Member Posts: 346

    Yes jdlcrater your right. pretty much i want to this when actor is pressed another actor spawns in covering the whole screen and not where the first actor is moving. I just want coordinates where the actor spawning is always in the center of the scene and not the actor.

  • reginald.bernardinreginald.bernardin Member Posts: 346

    my actor is the size of the scene too. i just want that actor to cover the whole scene

  • reginald.bernardinreginald.bernardin Member Posts: 346

    i need the coordinates of an actor to always spawn in the center of the scene pretty much

  • reginald.bernardinreginald.bernardin Member Posts: 346

    regardless of the moving actor

  • SLOCM3ZSLOCM3Z Member Posts: 797

    What size is your scene?

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    In the Spawn Actor Behavior use the option of "Relative to: Scene" when entering the starting positions of the actor.

  • reginald.bernardinreginald.bernardin Member Posts: 346

    my scene is 320 width by 568 height

  • reginald.bernardinreginald.bernardin Member Posts: 346

    Hey jamie i have it relative to scene I was looking for the position coordinates

  • reginald.bernardinreginald.bernardin Member Posts: 346

    position coordinates of the whole scene. wait i think i just answered my own question..lol

  • SLOCM3ZSLOCM3Z Member Posts: 797

    The coordinates would be 160 x and 284 y

  • reginald.bernardinreginald.bernardin Member Posts: 346

    cool thanks jdlcrater, but my scene is 320 width and 568 height shouldn't it be that?

  • AlchimiaStudiosAlchimiaStudios Member Posts: 1,069

    Put it on a non-scrollable layer and just position it center of camera size (width /2, height same way). Be sure to make it slightly bigger or the same size as camera size.

  • reginald.bernardinreginald.bernardin Member Posts: 346

    Thanks jdlcrater those coordinates works. thanks everyone

Sign In or Register to comment.