Shoot Em Up Orentation and Spawn

I am making a simple game that takes a point of the screen and spawns fish [import]uid: 55737 topic_id: 9924 reply_id: 309924[/import]

:slight_smile:
Nice to know! [import]uid: 34945 topic_id: 9924 reply_id: 36173[/import]

sorry forgot my question, I need help setting the side ways view and making the spawning code work on the side. I tried using a config.lua but it is not working. Also I tried that physics video for the spawning but I want it to come side ways from the rig [import]uid: 55737 topic_id: 9924 reply_id: 36186[/import]

heres my config.lua
[lua]application =
{
content =
{
width = 480,
height = 800,
scale = “Letterbox”,
fps = 60,
antialias = false,

imageSuffix =
{
["@2x"] = 2,
},
},
}[/lua]
and my build.settings

settings =  
{  
 orientation =  
 {  
 default = "landscapeRight",  
 supported =  
 {  
 "landscapeLeft", "landscapeRight"  
 },  
 },  
}  

As for spawning, if you want them to come from say the left side, create the object/image at a negative value of x and transition it into the screen.
for example if I wanted to make an image come from the left and go off the right of a 480px screen Id do something like

fish = display.newObject(‘fish.png’,0,0)
fish.setReferencePoint = display.CenterReferencePoint
fish.x = -200
fish.y = 160
transition.to(fish,{time=2000,x=680})

untested code, no idea if you are using sprites etc, I haven’t used them yet as my game uses static images. [import]uid: 34945 topic_id: 9924 reply_id: 36188[/import]

transition code is not working good. Any help [import]uid: 55737 topic_id: 9924 reply_id: 36378[/import]

[lua]function main()
fish = display.newImage(‘fish.png’,0,0)
fish.setReferencePoint = display.CenterReferencePoint
fish.x = -200
fish.y = 160
transition.to(fish,{time=2000,x=1000})
end
main()[/lua] [import]uid: 34945 topic_id: 9924 reply_id: 36407[/import]