Weird Block Movement: [Please Help]

Hi! I’m Baconcat008 and I need help! Im making a top down game where you need to move a block onto a button, but when you touch the block it slides around! If there is any work around to this I Would Appritiate all the help i can get [Also note i tried using enable for it to stop being movable when player isnt close, which worked except for the fact it cant press buttons anymore!]
Please help: https://flowlab.io/game/view/1658756

3 Likes

This game by @The_Kodex uses this type of behavior.

This is the code(copy)

{“data”:{“behavior”:{“v”:“2”,“nodes”:[{“inputCount”:0,“outputCount”:1,“name”:“Collision”,“behaviorType”:“logic.triggers.Collision”,“x”:810,“y”:448,“group”:"",“id”:“45ee2d750eaf5c47”,“targetClassId”:8530578,“targetEntityId”:0,“collisionFilter”:2,“collideWithEntity”:false,“delay”:0},{“inputCount”:0,“outputCount”:1,“name”:“Collision”,“behaviorType”:“logic.triggers.Collision”,“x”:810,“y”:640,“group”:"",“id”:“45ee2e0e268b8f4c”,“targetClassId”:8530578,“targetEntityId”:0,“collisionFilter”:8,“collideWithEntity”:false,“delay”:0},{“inputCount”:0,“outputCount”:1,“name”:“Collision”,“behaviorType”:“logic.triggers.Collision”,“x”:810,“y”:544,“group”:"",“id”:“45ee2f836e4f4341”,“targetClassId”:8530578,“targetEntityId”:0,“collisionFilter”:4,“collideWithEntity”:false,“delay”:0},{“inputCount”:0,“outputCount”:1,“name”:“Collision”,“behaviorType”:“logic.triggers.Collision”,“x”:810,“y”:352,“group”:"",“id”:“45ee3106bf24494e”,“targetClassId”:8530578,“targetEntityId”:0,“collisionFilter”:1,“collideWithEntity”:false,“delay”:0},{“inputCount”:3,“outputCount”:1,“name”:“Number”,“behaviorType”:“logic.logic.Value”,“x”:1080,“y”:352,“group”:"",“id”:“45ef503964d00a44”,“startVal”:2,“tag”:""},{“inputCount”:3,“outputCount”:1,“name”:“Number”,“behaviorType”:“logic.logic.Value”,“x”:1080,“y”:640,“group”:"",“id”:“45ef7b5b5508f74c”,“startVal”:-2,“tag”:""},{“inputCount”:3,“outputCount”:1,“name”:“Number”,“behaviorType”:“logic.logic.Value”,“x”:1080,“y”:544,“group”:"",“id”:“45ef7d2ee0387e48”,“startVal”:2,“tag”:""},{“inputCount”:3,“outputCount”:1,“name”:“Number”,“behaviorType”:“logic.logic.Value”,“x”:1080,“y”:448,“group”:"",“id”:“45ef7ea4f608c044”,“startVal”:-2,“tag”:""},{“inputCount”:3,“outputCount”:3,“name”:“Velocity”,“behaviorType”:“logic.properties.Physics”,“x”:1440,“y”:480,“group”:"",“id”:“45f00005a3f4d448”},{“inputCount”:0,“outputCount”:2,“name”:“Proximity”,“behaviorType”:“logic.triggers.ProximityNape”,“x”:810,“y”:224,“group”:"",“id”:“460e023753a75947”,“targetEntityId”:0,“threshold”:34,“once”:false,“targetClassId”:8530578,“nearestOnly”:true,“delay”:0,“firstObject”:false,“allObjects”:false,“contains”:false,“shape”:1},{“inputCount”:2,“outputCount”:1,“name”:“Logic Gate”,“behaviorType”:“logic.logic.Gate”,“x”:990,“y”:224,“group”:"",“id”:“460f05aae4a07740”,“gateType”:“NOR”},{“inputCount”:3,“outputCount”:1,“name”:“Number”,“behaviorType”:“logic.logic.Value”,“x”:1170,“y”:224,“group”:"",“id”:“460f3a7b4224fe48”,“startVal”:0,“tag”:""}],“links”:[{“input_id”:“45ef7ea4f608c044i1”,“output_id”:“45ee2d750eaf5c47o0”},{“input_id”:“45ef7b5b5508f74ci1”,“output_id”:“45ee2e0e268b8f4co0”},{“input_id”:“45ef7d2ee0387e48i1”,“output_id”:“45ee2f836e4f4341o0”},{“input_id”:“45ef503964d00a44i1”,“output_id”:“45ee3106bf24494eo0”},{“input_id”:“45ef503964d00a44i1”,“output_id”:“45ee3106bf24494eo0”},{“input_id”:“45f00005a3f4d448i1”,“output_id”:“45ef503964d00a44o0”},{“input_id”:“45ef7b5b5508f74ci1”,“output_id”:“45ee2e0e268b8f4co0”},{“input_id”:“45f00005a3f4d448i0”,“output_id”:“45ef7b5b5508f74co0”},{“input_id”:“45ef7d2ee0387e48i1”,“output_id”:“45ee2f836e4f4341o0”},{“input_id”:“45f00005a3f4d448i0”,“output_id”:“45ef7d2ee0387e48o0”},{“input_id”:“45f00005a3f4d448i1”,“output_id”:“45ef7ea4f608c044o0”},{“input_id”:“45f00005a3f4d448i0”,“output_id”:“45ef7b5b5508f74co0”},{“input_id”:“45f00005a3f4d448i0”,“output_id”:“45ef7d2ee0387e48o0”},{“input_id”:“45f00005a3f4d448i0”,“output_id”:“460f3a7b4224fe48o0”},{“input_id”:“45f00005a3f4d448i1”,“output_id”:“45ef503964d00a44o0”},{“input_id”:“45f00005a3f4d448i1”,“output_id”:“45ef7ea4f608c044o0”},{“input_id”:“45f00005a3f4d448i1”,“output_id”:“460f3a7b4224fe48o0”},{“input_id”:“460f05aae4a07740i0”,“output_id”:“460e023753a75947o0”},{“input_id”:“460f05aae4a07740i1”,“output_id”:“460e023753a75947o1”},{“input_id”:“460f05aae4a07740i0”,“output_id”:“460e023753a75947o0”},{“input_id”:“460f05aae4a07740i1”,“output_id”:“460e023753a75947o1”},{“input_id”:“460f3a7b4224fe48i1”,“output_id”:“460f05aae4a07740o0”},{“input_id”:“460f3a7b4224fe48i1”,“output_id”:“460f05aae4a07740o0”},{“input_id”:“45f00005a3f4d448i0”,“output_id”:“460f3a7b4224fe48o0”},{“input_id”:“45f00005a3f4d448i1”,“output_id”:“460f3a7b4224fe48o0”}]}}}

3 Likes

Thank you! It works now :3

2 Likes

Because this isn’t my code it’s The_Kodex’s I highly suggest giving him credit for it!

1 Like

Ok, I will :3

1 Like

Hey @AbstractGallery Thanks for using my game as an exampe I feel honoured, glad I could help out @Baconcat008 !

1 Like

Yea! I’m glad too, I dont want an Ice cube in my level lol. Thanks again! (I credited you in desc btw)

1 Like