Spawn actor X and Y max. Collision with game screen.

mchsapplesmchsapples Member Posts: 2
edited November -1 in Working with GS (Mac)
Is there a spawn actor X and Y position maximum? I can do 450 on X, but when I try 500 the actor doesn't spawn. I did 800 on a different actor also.

I'm trying to make the actor spawn right on the edge of the other actor to make it look meshed together since the max image size is 1024. If there's another that would appreciated.

Also is there a way to make the game keep an actor inside the screen without it moving outside the edges? It is player controlled also.

Comments

  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    If you spawn an actor too far off the edge of the size of the scene, it gets destroyed. So you can try increasing the size of the scene to go past the size of the viewable area.
    Scene button -> Attributes tab.
  • ORBZORBZ Member Posts: 1,304
    Thanks CodeMonkey, I always suspected that.

    Can we safely assume that actors that fly off screen with a given velocity are eventually going to be auto-destroyed once they reach that boundary and we don't need to worry about destroying them manually?

    What is the exact limit? I've just guessed it was somewhere over 100 pixels off screen would trigger auto-destruct? Could you give us the exact figure? Sometimes I like to hide actors at -100,-100 before use but I'd still like to know the exact dimensions just in case I need to position stuff off screen in a non-overlapping manner.
  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    It depends more on the size of the actor I think. I have background actors with a 480 width that I can hide off screen and they don't get destroyed.

    They will get auto-destroyed but don't always count on it if you can destroy it earlier.
  • mchsapplesmchsapples Member Posts: 2
    I have one more question.

    What is a good way to drag an actor? They way I have it is very horrid where if touch is inside or outside then it will move the actor to those coordinates.
Sign In or Register to comment.