Jump to content


VanHarry

Member Since 12 Jul 2009
Offline Last Active Dec 17 2012 08:51 PM

Topics I've Started

Walk To Mouse Position (heeelp!)

18 February 2010 - 02:28 AM

Hello boys and girls!

:)

i'm creating a top-down-shooter game, and I'm using Ultimate3D for it... but i have a problem!
The player must walk to target direction (where's mouse cursor is...)...
at 2D mode, I made it ease, no problems... but when I turned the game to 3D, using Ultimate3D, I got the problem! the object never walks or even faces the direction that mouse is pointing..

I need heeeeelp!

** Ah... sorry for my english, I'm from Brazil, never done English course... sorry... haha **

Thanks!

Display Resolution..

12 July 2009 - 05:30 PM

(First of all.. sorry my english, i'm from Brazil!)

Hi! after a long time working with Music Production, I'm coming back to Game Maker... and I've got a problem...

I want  that the gamer can change the Game Resolution.. like in any commercial game..
Everything was okay...
but now, when resolution is slower than 1280x1024 (I'm developing my game using this resolution), i've got problems with draw_rectangle..
in 1280x1024 res, the rectangle was filling all the window, but in slower res, don't.
But use views width and height, i solved that problem.. But I notice another problem.
In the title menu, using 1280x1024, the options are highlighted exactly when mouse is over the option, but in slower resolution, the options are highlighted in positions others than the exactly its object position in room.

I've try to change the resolution in the Global Game Settings and with GML. but the problems persists.

Here is the code:

// Resolution settings

global.ResX = 1024; // global variable for Resolution Width
global.ResY = 768; // global variable for Resolution Height

// global variable for desktop resolution (to set it back when game ends)
global.DesktopResX = display_get_width();
global.DesktopResY = display_get_height();

// check if game resolution is same as desktop resolution
if (global.ResX != global.DesktopResX || global.ResY != global.DesktopResY) {
		display_set_size(global.ResX, global.ResY);
}

Any help will be great! :)

thanks!