Jump to content


dbest

Member Since 15 Nov 2008
Offline Last Active Mar 11 2009 08:43 PM

Topics I've Started

Sprite Font Issue

08 January 2009 - 07:01 AM

I need some help while using Sprite Fonts in GM7 Pro.

I have loaded the sprite font as a sprite, named spr_font.

In an object's Create function, i have added:
global.font1 = font_add_sprite(spr_font,32,true,1);

Then in the Draw function:
draw_set_font(global.font1);
draw_text(10,10, "Welcome");

The object is placed in the room, but I do not see the text drawn on screen.

I guess the issue is with the sprite font itself, coz I have tried all the parameter combinations in the code.

Drop The Gifts

19 December 2008 - 12:18 PM

Brief Description
Drop The Gifts is my first game made using GameMaker. I wanted to make a game that had Christmas as its theme, and thus was created Drop The Gifts. I have also entered this game in the Zerosoft Games Christmas competition.


Game Info
In this game, the player plays as Santa Claus and has to deliver gifts to the houses in time for Christmas. The houses can only receive gifts of the same color. Crashing into incoming aircrafts takes away one of the gift that Santa Claus is carrying.


Screenshots
Posted Image

Posted Image


Download
The game is hosted on YYG at http://www.yoyogames...ames/show/64241

Comments
Thanks for reading the post and playing the game. All your comments are appreciated.

Drop The Gifts

01 December 2008 - 05:04 PM

Drop The Gifts is my first game made using GameMaker. Its a side scroller game in which you play Santa and have to deliver Christmas gifts to the different houses. You have to beat the clock as well as drop the gifts on the right colored houses.

v0.4 Update:
Added aircrafts that the player has to avoid. Crashing into an aircraft makes you lose one gift that you are carrying.


Screenshots:

[url="http://\"http://dt-games.net/games/dtg/screenshot103.bmp\""]Screenshot of Level 1[/url]
[url="http://\"http://dt-games.net/games/dtg/screenshot102.bmp\""]Screenshot of Menu[/url]

Download:
DTGv0.4.zip
[url="http://\"http://www.yoyogames.com/games/show/62284\""]WIP section of YoYoGames[/url]

Controls:
Arrow Keys - Movement
Space - Drop Gifts


Credits:
Music by Jay Taylor
Graphics by Jean-Paul
Font by Nate
Whatever is left by Andy Dbest

Additional Info:
GM Version: GM7
File Size: 4 MB
Screen Resolution: 800 x 600
Changes Screen Resolution: No

Gml: Random Object Creation

23 November 2008 - 02:57 PM

Hi All,

In my game, I want to create an instance of an object if the player presses the space key. I want it to work in GML mainly because I would be choosing from more than 4 objects, which is a limitation of DnD.

This is what I do in GML

[codebox] if (keyboard_check(vk_space)) then
instance_create(x,y,choose(obj1,obj2))[/codebox]

The problem is that, if I press the space key, more than one object is created at the spot. If I use DnD this works fine.

Looking for some help.