Jump to content


Kajio

Member Since 24 May 2007
Offline Last Active Nov 06 2013 10:43 AM

Topics I've Started

Background_Replace() Not Wanting To Work *Solved*

21 August 2013 - 02:40 AM

Trying to make a pause menu with the newest version of GM:S, so I've got the following object:

Information about object: obj_c
Sprite: 
Solid: false
Visible: true
Depth: -200
Persistent: false
Parent: 
Mask: 

Create Event:

execute code:

globalvar bg_pause, paused;
bg_pause=background_duplicate(bg_pause_default);
paused=0;


Draw Event:

execute code:

if (paused==1) {draw_background(bg_pause,view_xview,view_yview);}

Key Press Event for Key:

execute code:

paused=!paused;
if (paused==1)
{
    screen_save("temp.bmp")
    background_replace(bg_pause,"temp.bmp",0,0);
    instance_deactivate_all(1);
}
else
{
    instance_activate_all();
}

screen_save() works, it creates the file fine, but background_replace() seems to do nothing; the original bg_pause remains unchanged.  I tried using background_delete() and background_add() to do the same thing, but that didn't work either (and started passing errors)

 

SOLVED: My solution being that I'm downgrading to a previous version of GM:S for my game that is too large at this point to copy over to GM8, and then using GM8 for future development until I hear that GM:S has been improved significantly.


Fullscreen/Windowed Causing Problems With Surfaces

20 August 2013 - 09:47 PM

So switching between fullscreen and windowed mode destroys any surfaces you have, I got that.  When I switch between the two modes, or make a change to the window, I get this error:

 

ERROR in

action number 1
of Draw Event
for object obj_lightcon:
 
Trying to use non-existing surface.
 at gml_Object_obj_lightcon_Draw_0 (line 6) - draw_surface(light,view_xview[0],view_yview[0]);

 

However, I check to make sure that the surface exists before drawing it:

if (!surface_exists("light")) 
{
    light = surface_create(641,401);
}
draw_set_blend_mode_ext(bm_dest_color,bm_zero)
draw_surface(light,view_xview[0],view_yview[0]);
draw_set_blend_mode(bm_normal);

Any ideas as to why this is happening?  Thanks for any help!


[Unsolved] Controls Not Working On Other Computers

23 June 2013 - 10:21 PM

TL;DR: Controls don't work on some computers, but work perfectly fine on others.

 

 

I've released a demo for my recent game and for some people, it would appear that the controls don't work.  I upgraded to GMStudio to see if it would help, but it seems to have caused more people to encounter the same problems.

 

The problems seem all over the place, with some people having their momentum killed when they try to jump, others can't get walljumping to work properly, and others just have a lot of lag between pressing a key and actually doing something.  Half the time people are telling me that the controls work unless they do something completely unrelated (Like if they kill a monster, the controls stop working until they leave the room and come back).  This should obviously have no effect on the controls at all, but it does.  Other players don't report any problems with the controls at all.

 

The worst part about it is that I can't seem to replicate these problems on any of the computers I have access to, and googling doesn't yield anyone having the same problem!

 

I have used both "keyboard_check" and "keyboard_check_direct" but the results are the same.


Black Hole

04 July 2009 - 01:55 AM

Black Hole
Download Here




Black Hole is a simple game, but fun all the same. Dodge the incoming asteroids/debris as you flee from the huge black hole. The game gives you a score based on how well you dodged all the hazardous obstacles.

Download Here
YoyoGames (may be virus scanning)

The game features two songs, both of which are very nice, and can be heard in full length here:
|The Staring Sun| by MashedByMachines
ShuffleDub by td6d

Posted Image
Screenshot doesn't do the graphics justice.

Nodes

24 May 2009 - 12:50 PM

Posted Image
Yoyogames: http://www.yoyogames...ames/show/82822 (May be awaiting virus scan)
WillHostForFood: http://willhostforfo...hp?fileid=67412 (Must extract to save)



Nodes is a simple strategy/puzzle game, and is near completion. I need more levels, and if anyone is interested, please speak up. I need a level designer, and he will get credit.

Nodes is turn-based. The player gets two moves, with which he can either move or shoot. Then, the enemies get two moves each. The player has a an advantage over the enemies, however, as he can take three hits, and enemies can only take one. Tutorial and additional instructions is in game.

Please comment and leave reviews.