Spawning Problem
http_gamesalad
Member Posts: 1,340
Hello, what I'm trying to achieve is I want an actor to spawn a different position when game.screen.height = 480 . For some reason when I test it out it doesn't work when I put the screen size in iPhone Legacy Portrait mode. I've tried game.screen.height = 480 & I switched the spawn actors around & I've tried game.screen.height =\ (does not equal) 480 & I switched them around. Can anyone please help me with is? Thanks
Comments
What happens when you use Display Text behaviors to show the values of game.Active and game.screen.height? What are those values showing as?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
@tatiang When I put the display text game.screen.height and I change it to iPhone Legacy Portrait it say 480. And game.active is something I set up to change numbers at random from (1,6)
game.active is set up like this. When game.active = 1 spawn red, when game.active = 2 spawn yellow , when game.active = 3 spawn green and so on
The screenshot you posted shows a rule with the condition game.Active=1 and you're saying that rule isn't working. So in order to check it, you would need to use a Display Text behavior to show whether or not game.Active is 1. Also, what happens when you add a Log Debugging Statement to that same rule? Does the expression appear in the Debugger window?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
@tatiang I don't know what Log Debugging is. Please bare with me on this
Google log debugging gamesalad
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
@tatiang I solved the problem! My screen on the preview mode was on iPhone Legacy Portrait BUT was on 50% not 100% .. btw what does iPhone Legacy Portrait cover?
iPhone Legacy Portrait is for iPhone 4 resolution: 320x480.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
@tatiang will that cover iPhone 1,2,3 gens and iPod Touch 1,2,3,4,5 gens also ?
I guess... but you'd have to Google a bit to find out for sure. The current iPod Touch (is that 5g?) is 320x568.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
@tatiang one more question 320 x 568 is that the resolution size? Should I be googling for the resolution size of the screen of a device? Because I did a search it said something completely different with all the devices..
With resolution independence, your image sizes are twice the width and height of the scene size which is why you may see something like 640x1136 instead of 320x568. You can find more information about RI by searching here.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User