Jump to content


Rhodox

Member Since 05 Jun 2011
Offline Last Active Apr 12 2013 03:17 PM

Topics I've Started

Tower Defence Example

13 February 2012 - 06:08 PM

Title: Tower Defence Example
Description: A basic Tower Defence example
GM Version: GM8.0
Registered: Yes
File Type: .gmk
File Size: 11.8Kb
File Link: Mediafire

Required Extension: NONE
Required DLL: NONE

This is a updated version of a Tower Defence example I posted a while ago.It shows how to make a simple but good Tower Defnce game.

No credit required :lol:

500+ downloads, thanks guys :lol:

Need some help with place_empty()

17 December 2011 - 03:59 PM

I making a game but I have run into a problem.

I have some mountains in the background which are objects. And I have another object that checks  
if place_empty(x+32,y)
but of course it counts the mountains as an object so it can't work.

Is there a command or script that makes the object ignore one type of object
e.g.
if place_empty(x+32,y) except for obj_mountain

any help is appreciated  :lol:

[Script] Drawing game window in bottom right

11 December 2011 - 08:04 PM

I was playing around with GameMaker functions and I made a script just to see if I could
Its rather simple and works well

It puts the game window in the bottom left of the screen
I suggest calling this in the beginning of the game

Code:-----------------------------------------------------------------------------------------
//This sets the variables
posx = display_get_width()
posy = display_get_height()

//This does the maths needed to place the windo in the right place
posx -= room_width + 2
posy -= room_height + 2

//This physically changes the postion of the window
window_set_position(posx,posy)

//This script works with any room as long as it is over 120 pixels wide
----------------------------------------------------------------------------------------------

Feel free to edit and use this code anyway you would like
Credit not needed :lol:

[EXAMPLE]Basic Tower Defence

04 November 2011 - 08:54 PM

<------------UPDATED VERSION HERE------------>


Title: How to make a Tower defence game
Description: A simple tower defence game example
GM Version: GM8.0
Registered: No
File Type: .gmk
File Size: 3 mb
File Link: Download
Mirror: http://www.mediafire...4wkbi9wp8psg5u7
Required Extension: NONE
Required DLL: NONE
Description:

A basic TD example written in GML for people who don't know how to start one or how one could be made. It has 3 objects(Turret,zombie,bullet) it makes turrets face towards and shoot nearest zombie in its range with a rate of fire of 1 bullet per 1/2 a second(Bullets also have offset from there aim).Hope its is of some help for beginners.

get_save_filename

19 September 2011 - 04:59 PM

OK so I'm using


fname = get_save_filename("The Orbs|*.orb","");

if (fname =="")=false
{
game_save(fname+'.orb');
}

to save my games as a .orb but when I save it as a name that already has a save it adds .orb on the end every time so I get save.orb.orb

its probably something I did wrong does anyone know I can fix this?