Hi guys,
I would like to know how can I draw a line in CORONA SDK that appear
on the screen
while I’m drawing it, not just when I release my finger from the
screen. And then, how will I be able to add physics to my line??
Thanks a lot!!! [import]uid: 76800 topic_id: 21461 reply_id: 321461[/import]
MeApps
February 6, 2012, 7:21am
2
Here you go:
http://developer.anscamobile.com/code/gerald-anderson
[import]uid: 66859 topic_id: 21461 reply_id: 84958[/import]
Thanks a lot!! Now do you now how can I delete the previous line when I draw a new one? [import]uid: 76800 topic_id: 21461 reply_id: 84967[/import]
MeApps
February 6, 2012, 8:35am
4
No problem. Yes you can do that. You can have line be in a group display. Here is resource you should look at:
http://developer.anscamobile.com/code/easy-finger-drawing-undo-functionality
[import]uid: 66859 topic_id: 21461 reply_id: 84969[/import]
Thanks a lot, but my question was if I can draw a first line and THEN when I draw a second line the firts one dissapear [import]uid: 76800 topic_id: 21461 reply_id: 84974[/import]
MeApps
February 6, 2012, 9:23am
6
Ah, I see. Same concept. I have this in this app:
I have that function in this app:
http://itunes.apple.com/us/app/coachme-football-edition-lite/id455354813?ls=1&mt=8
You’ll notice you can draw routes on the players and if you draw on the same player it erases the previous one.
All you have to do is insert the line in a display group. and remove it from the group in your touch event in the begin phase…
[import]uid: 66859 topic_id: 21461 reply_id: 84977[/import]
ok, now I will try! Thanks! [import]uid: 76800 topic_id: 21461 reply_id: 84987[/import]