480 is the number of pixels for a full iPhone screen width plus add the width of your actor eg :50 pixels. This will put your actor off the right side of the screen where you want it to appear from.
The Y position refers to the height UP and DOWN of the screen and the placement of the actor within this space. The height is 320 pixels.
So y-position random means your actor can be randomly placed at any pixel between 0 & 320
Wrapping is a setting in the game attributes, it means when something leaves one side of the screen it appears on the opposite side. Turn this off if you don't want your actor to appear on the Left (remember 480 + 50 example) and then wrap to the right as it scrolls.
ok i sorta got it going, i dont see them coming from the right but it like im collecting them still coz my score goes up? should the actor that spawns the collectable item be scrollable? and here is a screen shot is this right?
Depends on if your level is a scrolling level or you are just moving the background to imply movement.
Best approach is to make an animated background that gives the illusion of scrolling then everything else can stay in position and does not need to be set to scroll.
Easier to upload your test game to the GSalad servers so we can see what you mean.
i have a scrolling scene and the collectible item to appear from the right of the screen as i move that way. i cant upload atm but will later on. thanks for the help so far
anyone able to help, i have a scrolling scene and want my spawnd actor to come from the right of the screen as the camera follows my player. or will i have to place them in my scene and not use spawn?
Comments
Make sure you have a little room if you are wrapping on the X axis so you don't see collectables start on the left side.
The Y position refers to the height UP and DOWN of the screen and the placement of the actor within this space. The height is 320 pixels.
So y-position random means your actor can be randomly placed at any pixel between 0 & 320
Wrapping is a setting in the game attributes, it means when something leaves one side of the screen it appears on the opposite side. Turn this off if you don't want your actor to appear on the Left (remember 480 + 50 example) and then wrap to the right as it scrolls.
Hope that makes sense
should the actor that spawns the collectable item be scrollable?
and here is a screen shot is this right?
http://img80.imageshack.us/img80/299/screenshot20091001at102.png
Best approach is to make an animated background that gives the illusion of scrolling then everything else can stay in position and does not need to be set to scroll.
Easier to upload your test game to the GSalad servers so we can see what you mean.
thanks for the help so far