Anyone? [import]uid: 103624 topic_id: 17976 reply_id: 69024[/import]
Spawn them further off the screen, that’s all.
Peach
[import]uid: 52491 topic_id: 17976 reply_id: 69070[/import]
When they are really offscreen, you shouldn’t be able to see them on the screen.
When they aren’t far enough, put them far enough.
If they should start invisible, set them to isVisible = false.
Also why did you change
projectile.x = (-projectile.width/2)+chooseLocation \* (display.contentWidth+projectile.width)
? Wasn’t this working for you?
It should actually position the projectiles exactly offscreen touching the screen on the outside. [import]uid: 13097 topic_id: 17976 reply_id: 69162[/import]
So it that the only option to make them not show up when they’re off screen?
I fixed the spawning inside the screen part, but both the main character and the projectiles can be seen when they’re supposed to be off screen. [import]uid: 103624 topic_id: 17976 reply_id: 69160[/import]
When I mean off screen, I mean greater than 800 and less than 0 on the X axis. Are you guys suggesting I just spawn them outside of the phone’s viewing area?
Or, I could just make the game stretch to fit the screen in the config.
And I just filled in the thing Fanta wrote with the values that it equates to, but it turns out I screwed up on that. Now it’s fixed. [import]uid: 103624 topic_id: 17976 reply_id: 69165[/import]
So, is there any other way to avoid images showing when they’re off screen?
Basically, is there a line of code that makes portions of images invisible, because my main character teleports to the other side if it goes so far off the screen, similar to Pac-Man. [import]uid: 103624 topic_id: 17976 reply_id: 69237[/import]
Anyone know? [import]uid: 103624 topic_id: 17976 reply_id: 69370[/import]
No there is not a line of code to make a portion of an image invisible.
Peach [import]uid: 52491 topic_id: 17976 reply_id: 69535[/import]
I just made a work around. 
I made rectangles that were off screen and brought them toFront() every time the game updated.
[import]uid: 103624 topic_id: 17976 reply_id: 69550[/import]