i want check event onPress
Label: corona android iphone ipad building error inmobi problem display screen View image tableView failed object physics touch button game lua config event listener |
If onRelease = tap , onPress = ??? in corana
set an event handler for touch, and check for the phases, began, moved and ended.
You can get an app that helps you create the code, called Corona Code Generator, the code generated can help you have a look at how to do stuff, have a look here
cheers,
?:)
Hey Jayant, I'm not sure that was what you intended to link to XD
nutty_99, onPress is for use with ui.lua - are you using that?
If not, do;
1 2 3 4 5 6 | local function myFunction () if event.phase == "began" then --Code for response to press here end end obj:addEventListener("touch", myFunction) |
Aaaaah!! wrong link, sorry, that was about a video that I was watching on evolution and developmental algorithms. Sorry for that, I was wanting to link to the article here
cheers,
?:)
thank for http://howto.oz-apps.com/2011/03/automatically-generate-corona-code.html
but i use window no mac i cannot run dmg file
there's a windows version too... here and if you look at the HowTo site, you will find other tutorials and reading / reference stuff that you can use.
cheers,
?:)
very thank @JayantV for tool win version
i have another problem about display text thai language
http://developer.anscamobile.com/forum/2011/09/27/problem-use-thai-language-displaynewtext
send message and call to a person
Forum: Report Spam + PM
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[SOLVED] Director ERROR: Failed to execute new( params ) function on 'screen1'
Too many (200) local variables
Corona SVG Level Builder released. Drag and drop physics level editor with Inkscape and SVG.
Small bug in Collectible Items example
Pivot Joints and apparent elasticity
Can't make removeSelf() delayed
Building App for Distribution
Runtime error not bringing up alert box
Change scenes Error
Physics Game not Installing on Android 2.2 Saumsung Device
Build automation
Using sprites to create a tiled background
Spriteloq v1.3.3 out
Touch drops FPS to 0/1 on the iphone with NO touch events
Corona SDK *IS* Compatible with new Amazon Kindle Fire