I am having an issue using events, the problem being I don’t know how they work. Mainly the event.phase event.
Any help?
-Gamexcb [import]uid: 8517 topic_id: 2679 reply_id: 302679[/import]
I am having an issue using events, the problem being I don’t know how they work. Mainly the event.phase event.
Any help?
-Gamexcb [import]uid: 8517 topic_id: 2679 reply_id: 302679[/import]
Best thing to do is put in your event handler:
print(event.phase)
Then interact. That’ll tell you everything you need to know. [import]uid: 3953 topic_id: 2679 reply_id: 7802[/import]
That helps but I don’t understand listeners or handlers if you could actually post all the code that would be very helpful!
-Gamexcb [import]uid: 8517 topic_id: 2679 reply_id: 7817[/import]
There’s loads of code in the SDK and the docs covering this. [import]uid: 3953 topic_id: 2679 reply_id: 7821[/import]
I can’t find it… 
Can you just post it?
[import]uid: 8517 topic_id: 2679 reply_id: 7829[/import]
I suggest slowing down just a bit.
Get a sample build (there are many in your SDK) and pick it apart line by line. At the same time…read all the Reference materials in the Resource section.
Get your balance first before trying to walk.
Its going to take a couple of weeks of reading to get started. [import]uid: 9492 topic_id: 2679 reply_id: 7839[/import]
I just need something to detect if the screen is not being touched. Thanks Synthesis i’ll do just that.
-Gamexcb [import]uid: 8517 topic_id: 2679 reply_id: 7845[/import]
I did it! I made a function that listed to a touch in the runtime object, then I just created a local var in that function called phase and set it to event.phase, then I created a if statement checking if “ended” == event.phase, then I was able to have a action done when there was no touch on the screen!
-Gamexcb [import]uid: 8517 topic_id: 2679 reply_id: 7878[/import]