Jump to content


Grundoko

Member Since 12 May 2007
Offline Last Active Feb 11 2013 08:39 AM

Topics I've Started

Creating and using a rectangular mask from w & h

27 September 2010 - 01:08 AM

This seemed fairly simple to me at first, and I'm sure it's something very simple I'm missing, but I really can't figure this out.

I'm trying to give the player a rectangular collision mask based on it's width and height, so I create_sprite_from_screen to get a sprite from the screen the size of the player.
I then set the collision properties of it, and applied it to the player object using mask_index, but it's not working.

Here's the exact code I'm using.
// The width (in pixels) of the player
global.player_width = 30

// The height (in pixels) of the player
global.player_height = 30

// Set the mask to the given width and height of the player
mask_player = sprite_create_from_screen(x,y,global.player_width,global.player_height,0,0,0,0)
sprite_collision_mask(mask_player,0,1,0,0,0,0,1,0)
mask_index = mask_player

Any help would be appreciated.

DropBlox

06 September 2010 - 06:08 PM

This game was originally meant for Competition05, but due to problems with bad coding and lack of organizing, it became extremely glitchy, and unfixable. This weekend, I decided to start from scratch, and in two days, I was able to do more with it than I had previously been able to do in my two months of working on it.

It's certainly not polished in the graphics department, but is has great music done by EB3, and a well working engine.

The idea seemed good at first, but in execution, it wasn't as fun as expected. Any suggestions to make the game more fun are appreciated. I'll be trying different game-modes, like challenges, and having the blocks drop along with music.

Download: DropBlox.exe

Simple Terraforming Engine (Very Incomplete)

22 June 2010 - 05:53 AM

I haven't used Game Maker in quite some time now, but I got this idea in the shower, and I figured it would be a great way to get myself back into the groove of programming. It's a very simple Terraforming engine, which allows the force of an explosion to actually re-shape the ground. At the moment it's very lacking in everything but the bare minimum. You can click to set off an explosion, which will cause the points which represent the land to move, if two points move too far away from each other, a new point will be created inbetween them in order to maintain quality.

I'm going to work on this a little more, and it is open source, so feel free to look at it, modify it, etc. It's not much, but if it helps you feel free to use it, no credit required.

Update Log:
August 24th 2010: Almost 2 months later of not even attempting to fix my mess of a terraforming engine, I completely rewrote it, with very well structured, and commented code. I've also added the ability for the engine to create new points inbetween far apart points in order to retain quality.

http://www.box.net/shared/v92uiy8u4s

List Of Files In A Directory.

18 March 2010 - 08:06 PM

The title says it all. Is it possible, and if so, how?
I want to be able to read all the files in a directory, and get a path to each file.

I'm completely stumped. The only option I can come up with, is to have a brute force repeat script, that checks for a file with every possible name up to so many digits. That's completely overkill, and would have a limit of only finding items up to so many digits. It would also take an extremely long time XD.

Any suggestions?

Get The Height Of The Windows Taskbar

15 February 2010 - 01:53 AM

I want my program to dock to the bottom of the screen, which I could easily do, if I knew the height of the taskbar. In Windows XP and Vista it's 20 pixels high I believe, but in Windows 7 it's 40 pixels high. Then there's the possiblity that some people could use themes that would change the height of the taskbar. So if there's any place in the registry or otherwise that states the height of the taskbar, it would be very useful.