Jump to content


piluke

Member Since 06 Aug 2010
Offline Last Active Feb 12 2013 02:47 AM

Topics I've Started

Help with Surface Text

07 July 2011 - 04:59 PM

I was trying to figure out surfaces, but I can't even seem to draw text properly. Here is what it looks like:
Posted Image
Does anyone know what I'm doing wrong? Is it my computer or something?

Here's my code:
globalvar swap_surf;
swap_surf = surface_create(room_width, room_height);
surface_set_target(swap_surf);
draw_clear_alpha(c_white, 0);
scr_surf();
surface_reset_target();

//Draw event
if (variable_global_exists("swap_surf"))
{
  draw_surface_ext(swap_surf, 0, 0, 1, 1, 0, c_white, draw_get_alpha());
}

//scr_surf
draw_set_color(c_gray);
draw_rectangle(10, 10, room_width-10, room_height-10, false);
draw_set_color(c_white);
draw_text(15, 20, "Surface test.");

Dev C++ DLL Compile Error

17 June 2011 - 05:23 AM

So I wanted just to make a simple addition DLL to make sure I was doing it right, but I can't get it to compile.

I'm using Dev C++ (Version 4.9.9.2.) I selected DLL for the project type, and this is the code I have:
//Defines
extern "C" __declspec(dllexport) __stdcall int add(int x, int y);

//Functions
extern "C" __declspec(dllexport) __stdcall int add(int x, int y)
{
  return x+y;
}
I put it right after the includes in dllmain.cpp, but when I try to compile it, this happens:

lmain.o: No such file or directory.

I'm not really sure what I'm supposed to do as I'v never made a DLL before and I'm still learning C++.

If anyone could help, that'd be great ^_^

Thanks,
Luke

Smash Master

04 February 2011 - 01:07 PM

EDIT:
PM me for details.

Server, HTML5, and Website Hosting

25 January 2011 - 02:43 AM

I have some experience with servers and networks, so I am providing a game and website hosting service free of charge.

I know HTML, Javascript, PHP, FTP, and MySQL. I'll help you work through a few issues you may have with networking, but I will not build your game for you.

Currently my servers are running Ubuntu 12.04 LTS, so GM may have some incompatibilities with WINE. I'm willing to help you transfer it over to a better language, but it might work fine without.

I'll require the source code of the server and the needed external files. Obviously I am allowing servers made with GM, but I prefer it to be made in a language than can be used natively with Ubuntu.

I am not allowing hosting of websites with PHP, for now I'm only allowing HTML and Javascript. Also, I won't be providing a subdomain, only an IP so you might want to look into Dot.tk or Co.cc.

PM me if you are interested or if you would like to give suggestions.

Servers currently being hosted:
AvP: Fallen by MasterOfKings
Minecraft by Mojang
Untitled by RoyalCardMan, inactive
Operation 23: Crazy Warfare by Tha_14, inactive

HTML5 games currently being hosted:
GameMaker HTML5 Player

Websites currently being hosted:
None.

Find the number of total object

04 January 2011 - 02:43 AM

Is there a way to find the total number of objects? I do not want the number of instances in the room.