What is the position coordinates to spawn an actor to fill the whole screen
reginald.bernardin
Member Posts: 346
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
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.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
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.
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.
my actor is the size of the scene too. i just want that actor to cover the whole scene
i need the coordinates of an actor to always spawn in the center of the scene pretty much
regardless of the moving actor
What size is your scene?
In the Spawn Actor Behavior use the option of "Relative to: Scene" when entering the starting positions of the actor.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
my scene is 320 width by 568 height
Hey jamie i have it relative to scene I was looking for the position coordinates
position coordinates of the whole scene. wait i think i just answered my own question..lol
The coordinates would be 160 x and 284 y
cool thanks jdlcrater, but my scene is 320 width and 568 height shouldn't it be that?
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.
Follow us: Twitter - Website
Thanks jdlcrater those coordinates works. thanks everyone