How do I fix cursor pos while using magicam plugin?

Get help using Construct 2

Post » Mon Nov 10, 2014 8:32 am

I want the mouse to be an object but when using the plugin Magicam it won't correctly follow the mouse's position.

Also, how do I destroy the Gun sprite that is on top of an enemy when that enemy is destroyed?

Link to capx with both problems -https://www.dropbox.com/s/d9clrax7n4xnfzq/Gun%26Cursor.capx?dl=0-
B
10
S
4
Posts: 56
Reputation: 919

Post » Wed Nov 19, 2014 3:10 pm

Can anyone help please?
B
10
S
4
Posts: 56
Reputation: 919

Post » Wed Nov 19, 2014 4:56 pm

Make an invisible box object that follow your mouse around, and have magiccam point at that instead

every tick -> set position "box" to mouse.x, mouse.y


Also, you want to put your sprite, and gun sprite in a container together, so that when one is destroyed, everything else in the same container is destroyed.
B
87
S
44
G
16
Posts: 1,002
Reputation: 17,932

Post » Wed Nov 19, 2014 5:31 pm

Thanks justifun, I was wondering how best to do that too.
Image
B
9
S
3
G
1
Posts: 346
Reputation: 1,560


Return to How do I....?

Who is online

Users browsing this forum: evillair, YoHoho and 10 guests