Problems with Change attribute

Alright, so I have Actor 1 whose position lies at (20,20). Within actor 1, I have a rule that says:

if game.screen.height =568, then change attribute self.position.x to -20
Otherwise
Change attribute self.position.x to 20

However, when I test it and switch from Legacy iPhone to iPhone 5, it doesn't move, just stays put. Any ideas?

Side note: I'm using the latest Nightly Build

Comments

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    simple question but have to ask. this is a portrait game right? home button on the bottom? Otherwise you need to make sure game.screen.width is 568
  • tylerglessnertylerglessner Member Posts: 246
    Well, this is embarrassing! I've been using Gs for more than a year and that was the simplest of fixes..thanks @jonmulcahy !
Sign In or Register to comment.