J_Wotoo Posted September 30, 2014 Share Posted September 30, 2014 I was looking for an example of using the Keyboard.justpressed() function today cause I've been wanting to fine-tune my input controls, but the example is just using keyboard.isDown(). *sadface Does this example need updating? I've noticed a few of the current examples are using older phaser code - is there a concerted effort to update these with each new release or is it a bit more of a "fix stuff when I see it's broken/old" approach? Just wondering if I should go through a bunch of the examples and make sure they're all working with the latest version of Phaser Link to comment Share on other sites More sharing options...
bunnyhero Posted September 30, 2014 Share Posted September 30, 2014 yeah, i find this REALLY FRUSTRATING when example code doesn't even run. Link to comment Share on other sites More sharing options...
rich Posted September 30, 2014 Share Posted September 30, 2014 JustPressed and isDown are two completely different things, used in different situations. I see no reason why one needs replacing for another. Neither are "old" or incorrect approaches.If you find an example that doesn't work then report it. Link to comment Share on other sites More sharing options...
J_Wotoo Posted September 30, 2014 Author Share Posted September 30, 2014 Uh, ok so you may have misunderstood me - I'm not trying to replace one for the other, nor am I saying these specific functions are old or incorrect. I've tried code in other examples however that were clearly incorrect and I'm assuming that's because of API changes. To be a bit clearer, I was trying to find an example of justPressed(), because I don't think I'm using it correctly in my game. I looked at the example called Keyboard justpressed but it didn't actually use that function (?), instead it uses keyboard.isDown(). cheers, I'll remember to submit anything I find to Github then Link to comment Share on other sites More sharing options...
J_Wotoo Posted September 30, 2014 Author Share Posted September 30, 2014 Woohoo! I just had a look at the current issues and someone has already reported it and submitted an updated example Link to comment Share on other sites More sharing options...
rich Posted October 6, 2014 Share Posted October 6, 2014 I've tried code in other examples however that were clearly incorrect and I'm assuming that's because of API changes. yeah, i find this REALLY FRUSTRATING when example code doesn't even run. Not half as frustrating as I find blanket statements like this that don't specifically state which ones don't run. Link to comment Share on other sites More sharing options...
Recommended Posts