The Daily Click ::. Forums ::. Klik Coding Help ::. mouse movement and scrolling
 

Post Reply  Post Oekaki 
 

Posted By Message

tecbug



Registered
  05/02/2004
Points
  312
11th February, 2005 at 06:51:21 -

i have 2 active objects: A and B.
A: 8 directions movement (keyboard), screen is centered on this object
B: mouse movement (border on screen border)
level area > screen size

when A is moving screen is also moving, and mouse movement borders are not actual any more. when i set mouse movement borders on level borders obj B can leave screen.
how can i make B not to leave screen?
how can i move mouse movement borders to fit always in the screen?

 
n/a

jast



Registered
  03/01/2014 01:12:19
Points
  186
11th February, 2005 at 07:56:07 -

Get rid of the internal mouse movement and instead set an active object's coordinates at your cursor (which you can make invisible).

 
n/a

Teapot

Does he even go here

Registered
  02/10/2003
Points
  2631

VIP Member
12th February, 2005 at 03:44:38 -

Which is done like this:

Always- set object B's X position to "xmouse"
- set object B's Y position to "ymouse"

 
n/a

AsparagusTrevor

Mine's a pint of the black stuff

Registered
  20/08/2002
Points
  2364

Game of the Week WinnerHas Donated, Thank You!VIP MemberEvil kliker
12th February, 2005 at 12:06:40 -

And not like this:

Start of Frame -> Destroy

 
Image
   

Post Reply



 



Advertisement

Worth A Click