How do I Make a wall, my cursor cant pass

Get help using Construct 2

Post » Mon Dec 15, 2014 12:35 am

the cursor bounces when its in a corner :/ it vibrates, i can not for the life of me figure out how to stop it :/
B
5
Posts: 15
Reputation: 259

Post » Mon Dec 15, 2014 12:53 am

It doesn't vibrate for me. In the capx I subtracted 1 from the repeat loop to stop jitter when the mouse isn't moving.

repeat distance(cursor.x, cursor.y, mouse.x, mouse.y)-1 times

Maybe that can help? Maybe use 2 instead?
B
92
S
32
G
106
Posts: 5,273
Reputation: 69,457

Post » Mon Dec 15, 2014 3:23 am

aha, it was one of the behaviors i had on the cursor, its fixed, but it still moves when i move the mouse on the other side of the wall, as i move it around, the cursor moves left/right/up/down one or 2 pixels, still in the wall.
B
5
Posts: 15
Reputation: 259

Post » Sun Feb 01, 2015 4:19 am

R0J0hound wrote:It doesn't vibrate for me. In the capx I subtracted 1 from the repeat loop to stop jitter when the mouse isn't moving.

repeat distance(cursor.x, cursor.y, mouse.x, mouse.y)-1 times

Maybe that can help? Maybe use 2 instead?

Where is this stuff supposed to be put in?? I too want to know how to move through walls of the same game. Thanks
B
3
Posts: 1
Reputation: 177

Post » Mon Feb 02, 2015 2:45 am

@Cursors
In event 4 of the capx I posted. In the capx I use -1, and in the quote I'm suggesting to use -2.
B
92
S
32
G
106
Posts: 5,273
Reputation: 69,457

Previous

Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, Buddhika, R0J0hound, Unconnected and 16 guests