courtneyvigo Posted December 9, 2016 Share Posted December 9, 2016 Im trying to condense my code so that it looks cleaner. Is there a way to write : text.x = 500; text.y = 0; as one line? I tried: text1.position = (500,0); but no go Quote Link to comment Share on other sites More sharing options...
Cold_Meson_06 Posted December 9, 2016 Share Posted December 9, 2016 In pixi you can use the .set() method like this: text.position.set(500,0) text.position = (500,0) not works because the position property must be a PIXI.ObservablePoint or an object like {x:100,y:100}. courtneyvigo 1 Quote Link to comment Share on other sites More sharing options...
courtneyvigo Posted December 12, 2016 Author Share Posted December 12, 2016 Thank you! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.