Hello, thanks for visiting GameML, if you are a Game Maker user, this is the site for you, please sign up, or login if you are already a member, or just browse the site! Welcome to GameML!

ATTENTION MEMBERS!!! USERS CAN NOW SIGN UP AGAIN!
Log in

I forgot my password

Search
 
 

Display results as :
 


Rechercher Advanced Search

Site Hits
Free hit counter
These stats started at 0 on July 7th 2009
GameML File Sharing
USERNAME: gamemladmin@gmail.com PASSWORD: gamemlsite Upload Here: http://gameml.iowoi.org/GameML-File-Sharing-h3.htmPlease add only games.
Create A GAMEML BLOG!
Make a Blog on GameML:http://gamemlblogs.wetpaint.com

MOUSE controlled 3D games!

View previous topic View next topic Go down

MOUSE controlled 3D games!

Post by Alengard on Fri Jun 12, 2009 9:54 am

My friend ZX at Yoyo, gave me this code. I use it on my NINTENDO WORLD DELUXE EDITION and on my XENO-WAR games.

This code will allow the player to look to the sides with the mouse.

//MOUSELOOK
z=0 //get display dimensions
display_w=display_get_width(); display_h=display_get_height();
//calculate motion
change_x=(display_mouse_get_x()-display_w/2)/16; change_y=(display_mouse_get_y()-display_h/2)/12;
//move cam
direction-=change_x
//set mouse back
display_mouse_set(display_w/2,display_h/2);

Hope this help u! (And that it works on ur 3D game Razz) L8R!
avatar
Alengard
GameML Basic
GameML Basic

Posts : 96
Points : 29570
GameML Reputation : 1
Join date : 2009-06-08
Location : Death Star

View user profile http://www.animetro.260mb.com

Back to top Go down

Re: MOUSE controlled 3D games!

Post by Pikmon2 on Fri Jun 12, 2009 11:07 am

oooo. I would prefer the keyboard though.(cause my mouse sux)
avatar
Pikmon2
Super 500 GML
Super 500 GML

Posts : 847
Points : 30357
GameML Reputation : 1
Join date : 2009-06-06
Age : 18
Location : Killing a bulborb

View user profile http://pikmonstudios.swordandspirit.com/pikmonstudios/Main/Main.

Back to top Go down

Re: MOUSE controlled 3D games!

Post by Alengard on Fri Jun 12, 2009 11:09 am

LMFAO! some reason, man...
avatar
Alengard
GameML Basic
GameML Basic

Posts : 96
Points : 29570
GameML Reputation : 1
Join date : 2009-06-08
Location : Death Star

View user profile http://www.animetro.260mb.com

Back to top Go down

Re: MOUSE controlled 3D games!

Post by 3d on Fri Jun 12, 2009 12:26 pm

so exactly what does this do? mouse controlled view like in my elmaze game, but only left and right?

_________________
Creator of GameML, Thanks for Visiting!
avatar
3d
Admin
Admin

Posts : 1227
Points : 41216
GameML Reputation : 66
Join date : 2009-05-31
Age : 34
Location : U.S.A

View user profile http://gameml.iowoi.org

Back to top Go down

Re: MOUSE controlled 3D games!

Post by Alengard on Fri Jun 12, 2009 1:00 pm

I don't know the elmaze game...but yea, this only work 4 the X movement of the camera (direction)
avatar
Alengard
GameML Basic
GameML Basic

Posts : 96
Points : 29570
GameML Reputation : 1
Join date : 2009-06-08
Location : Death Star

View user profile http://www.animetro.260mb.com

Back to top Go down

Re: MOUSE controlled 3D games!

Post by 3d on Fri Jun 12, 2009 1:01 pm

nice.

_________________
Creator of GameML, Thanks for Visiting!
avatar
3d
Admin
Admin

Posts : 1227
Points : 41216
GameML Reputation : 66
Join date : 2009-05-31
Age : 34
Location : U.S.A

View user profile http://gameml.iowoi.org

Back to top Go down

Re: MOUSE controlled 3D games!

Post by CarnivorousA on Fri Jun 12, 2009 8:52 pm

This will be great for people with laptops Very Happy

_________________
avatar
CarnivorousA
Moderator
Moderator

Posts : 1402
Points : 31432
GameML Reputation : 17
Join date : 2009-06-01
Age : 22
Location : At the bottom of the lake.

View user profile http://entertainmypeople.freeforums.org/index.php

Back to top Go down

Re: MOUSE controlled 3D games!

Post by The Dark Ninja on Thu Jun 18, 2009 12:20 am

nintendo world deluxe edition is awesome and chalening Exclamation
avatar
The Dark Ninja
Super 500 GML
Super 500 GML

Posts : 1495
Points : 31994
GameML Reputation : 7
Join date : 2009-06-16
Location : Earth

View user profile http://www.thedakninja.tastyhamgames.com

Back to top Go down

Re: MOUSE controlled 3D games!

Post by Alengard on Fri Jun 19, 2009 10:26 am

Thanx dark!
avatar
Alengard
GameML Basic
GameML Basic

Posts : 96
Points : 29570
GameML Reputation : 1
Join date : 2009-06-08
Location : Death Star

View user profile http://www.animetro.260mb.com

Back to top Go down

Re: MOUSE controlled 3D games!

Post by The Dark Ninja on Wed Sep 02, 2009 1:54 pm

your welcome
avatar
The Dark Ninja
Super 500 GML
Super 500 GML

Posts : 1495
Points : 31994
GameML Reputation : 7
Join date : 2009-06-16
Location : Earth

View user profile http://www.thedakninja.tastyhamgames.com

Back to top Go down

Re: MOUSE controlled 3D games!

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum