A suggestion for example code - if it was done with the functions in separate files and only the calling of functions and flow control in the main.lua, this might both model realistic design for us newbies and also allow us to successfully use the examples as part of our new programs. IE, copy module like followMe.lua to my own app dir and use the example of how to call the functions from the main.lua of the FollowMe sample code.
My current problem is I am not seeing collisions between my draggable objects since I modulized and mashed together the FollowMe and CollisionDetection samples:
http://codelock.com/corona/DragCollide.zip
My desire is to have the crates static on the right side of the screen.
The draggable text objects get dragged over to touch one of the 2 crates.
When a text object touches a crate object, I was going to make an action that the text object slides into the crate disappearing off the screen. Like it gets sucked in. Nothing fancy needed. This is just a person with their finger choosing “I am going to put this text into this crate”
Anyway my problem is that I no longer can cause any collision signals?
Thanks for any tips. I think this would be useful sample code for others once working since dragging with collision seems like a common need. I have seen another user asking for hints to create the common “drag object to other object where first object then disappears” which reminds me of drag to trash can functionality. [import]uid: 10016 topic_id: 3087 reply_id: 303087[/import]
