Detect collision in pause mode

Hi,

I am trying to make a game which have a pause mode and a play mode. In pause mode you can place different items on the screen. When hitting play, gravity turns on and action happens.

My problem is that I don’t want the user to be able to place a item over another existing item. I want the dragging item to be red if trying to dump it over another item (I don’t want the other item to interact with the dragging item).

How can I make this work?

I have tried to turn on collision detection, but I only get detections when a dynamic item hits another dynamic item.

There are both dynamic and static items.
I think about turning all static items into dynamic items, then I will get my collision detection but I still have the problem with items interact on each other.

Thanks,

/nicdal
[import]uid: 8712 topic_id: 2025 reply_id: 302025[/import]

To clarify this, you should be able to detect a collision between any two objects when at least ONE of them is dynamic. So a dynamic/static collision should work fine.

(For an example, see the “CollisionDetection” sample code, which reports collisions between dynamic crates and the static ground.) [import]uid: 3007 topic_id: 2025 reply_id: 6416[/import]

This is exactly what I am looking for, but cant find any information on. You can see an example of this in most, if not all, tower defense games. Someone has to of done something similar in corona…please share if you have. [import]uid: 9484 topic_id: 2025 reply_id: 47354[/import]

Hi, I am trying to make a game which have a pause mode and a play mode. In pause mode you can place different items on the screen. When hitting play, gravity turns on and action happens.

Hi nicdal, I realise this was a long time ago but just in case I thought it worth asking, did you ever get this part of the code working and if so, how?

Thanks for your time :slight_smile: [import]uid: 90223 topic_id: 2025 reply_id: 59866[/import]

I’ve done something similar by leaving everything dynamic but turning on the ‘isSensor’ property so that all collisions are reported but no collision responses are processed. [import]uid: 89028 topic_id: 2025 reply_id: 59883[/import]