This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-01-15 16:42:04

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Violent Shaking when sprite tracked to mouse. Help please!

I am trying to make an FPS and i need to know how to fix this issue.

The problem is, when i told the cross-hair to :

forever {
pointTowardsMouse();
move30Steps();
}
(of course, i used the blocks to do that... i did not use a different program.)

The cross-hair would track to the mouse, Good! But it is constantly shaking violently from side to side, Very Bad! 


Please help.

regards,

CAA14

Offline

 

#2 2013-01-15 17:06:06

sonicfan12p
Scratcher
Registered: 2011-11-16
Posts: 1000+

Re: Violent Shaking when sprite tracked to mouse. Help please!

Instead of your current script, use this instead.

when gf clicked
forever
go to [mouse-pointer v]
It's much smoother, and not complicated!  smile

Last edited by sonicfan12p (2013-01-15 17:06:16)


Why are the secret organizations getting all the attention?  mad

Offline

 

#3 2013-01-15 18:27:03

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Re: Violent Shaking when sprite tracked to mouse. Help please!

Oh man, thank you!

As you can tell, I'm new to scratch and am currently learning a real(no offense to scratch  smile ) programing language.

Thanks for pointing that out!
It did not know about that block...

Works now!

regards,

CAA14

Offline

 

Board footer