The Daily Click ::. Forums ::. Klik Coding Help ::. crimsonland mouselook scrolling
 

Post Reply  Post Oekaki 
 

Posted By Message

Koth



Registered
  21/02/2007
Points
  34
23rd July, 2008 at 00:37:45 -

hi Im trying to make the character + mouse look (screen centers the mid-distance between character and mouse cursor)

Im too unexperienced to make it work I guess it's possible with some proper math,
anybody knows that?

many thanks

Image Edited by the Author.

 
-K

Codemonkey

Always Serious

Registered
  06/11/2007
Points
  164

Code MonkeyKlikCast StarVIP MemberAttention GetterWii Owner360 OwnerThe Cake is a LieCardboard BoxHero of TimeI'm a Storm Trooper
I'm on a BoatIt's-a me, Mario!PS3 OwnerSonic SpeedGOTM - SEPTEMBER 2009 - WINNER!Evil klikerPokemon Ball!I am an April Fool
23rd July, 2008 at 00:53:19 -

Ben mercer http://www.create-games.com/profile.asp?id=18010 , did something like this I think on his orphangage demo. I bet he knows a good way to do it.

 
You can log off any time you like, but you can't ever leave.

Jon Lambert

Administrator
Vaporware Master

Registered
  19/12/2004
Points
  8235

VIP MemberWii OwnerTDC Chat Super UserI am an April FoolSSBB 3265-4741-0937ACCF 3051-1173-8012360 Owner
23rd July, 2008 at 01:00:00 -

Try this.

Image

 
Sandwich Time!Whoo!

JoyCheck & KeyCheck Widgets
For easy implementation of customizable joystick and keyboard controls.
http://www.create-games.com/download.asp?id=8364

Koth



Registered
  21/02/2007
Points
  34
23rd July, 2008 at 01:12:57 -

oh yeah that is!

thank you VM

btw orphanage kicks asses!

Image Edited by the Author.

 
-K

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
23rd July, 2008 at 01:14:35 -

the orphanage demo is unplayable with that kind of scrolling imo. i get hit 2 times and my guy is spinning around in circles cause of it making it impossible to aim. hopefully thats fixed in the final release.

 
n/a

Koth



Registered
  21/02/2007
Points
  34
23rd July, 2008 at 15:10:51 -

true, it needs to be fixed. still lots of cool features tho

 
-K

Codemonkey

Always Serious

Registered
  06/11/2007
Points
  164

Code MonkeyKlikCast StarVIP MemberAttention GetterWii Owner360 OwnerThe Cake is a LieCardboard BoxHero of TimeI'm a Storm Trooper
I'm on a BoatIt's-a me, Mario!PS3 OwnerSonic SpeedGOTM - SEPTEMBER 2009 - WINNER!Evil klikerPokemon Ball!I am an April Fool
23rd July, 2008 at 15:11:41 -


Originally Posted by Random Cecil
the orphanage demo is unplayable with that kind of scrolling imo. i get hit 2 times and my guy is spinning around in circles cause of it making it impossible to aim. hopefully thats fixed in the final release.



I love that!

 
You can log off any time you like, but you can't ever leave.

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
24th July, 2008 at 01:26:04 -

it isnt exactly realistic codemonkey, and it would make the final game dead near impossible to play. but the movies of the newer engines look like its fine tuned a lot better. *hopes for the best*

 
n/a

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
24th July, 2008 at 07:47:14 -

I agree with Random Cecil, the fact that you can't aim when you're shot makes the game very difficult and unplayable. I assume it's trying to simulate the same effect in most FPS' where your accuracy is changed when you are attacked, but I just find it annoying.

As for the centring, Jon & George Lambert's method works, but it is more work than is necessary. You can simply do

Always:
Centre display at X = (XMouse + X( "Active" ))/2
Center display at Y = (YMouse + Y( "Active" ))/2

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy
   

Post Reply



 



Advertisement

Worth A Click