Jump to content


mecool1

Member Since 28 Dec 2009
Offline Last Active May 02 2013 11:08 PM

Topics I've Started

Random Game Freezes/Stutters

28 April 2013 - 06:41 PM

Hey everyone! so i have a lot of random game freezes on lower end android devices, the game run fines but will all of a sudden freeze up. It mainly seems to happen when drawing rectangles. it does happen at other times, but usually when drawing. anyways heres my code that I'm drawing with:
 
if sprite_index=spr_player_boss or sprite_index=spr_player_boss2{draw_line_width_color(x+195,y+150,x+1280,y+150,32,c_red,c_red)draw_line_width_color(x+195,y+150,x+1280,y+150,24,c_yellow,c_yellow)draw_line_width_color(x+195,y+150,x+1280,y+150,16,c_white,c_white)}
 
is this just game makers problem? theres nothing wrong with the code. What else can i do to decrease game stutters/freezes? I heard try to lower the amount of instances in the room, but there are usually about 50 active, 150 at the most and when its that much, its usually self made particles.

While Statement Not Executing, I Dont See Why

23 April 2013 - 05:34 PM

hey guys! I have this code, that pretty much checks to see if an object in an array is being clicked. if it is it returns true, if not it returns false. I put in some show_message blocks, and apparently the while statement isn't being executed. the object in the array has a custom bounding box set in the object (x1,x2,y1,y2).mousex and mousey are set in the calling object's left pressed event. everything else i believe is self explanatory. heres the code:

 

//checks to see if user is clicking on something
objs=1 // number of objects in array
i=0
 
//arrays
if !object_exists(obj_pause_controller) and object_exists(obj_mute)
obj[0]=obj_mute
else
i+=1
 
while (i<objs)
{
if mousex>obj[i].x1 and mousex<obj[i].x2 and mousey>obj[i].y1 and mousey<obj[i].y2
{
return true
}
else
{
i+=1
if i<objs
return false
}
}

hey guys figured out my problem, got instances mixed up with objects. its instance_exists not object_exists =P


Trying To Make Black Sprite Blue

12 April 2013 - 01:55 AM

Hey everyone! I have a bunch of animations for the player object, and I need a way to draw a sprite over it or just tint it somehow so it appears to be sky blue-ish. The problem is its mostly black and you can't tint black. I also can't remake all the animations with a blue color as there are just to many. Pretty much I want the effect where if I did redo all the animations, I would make them blue, turn down the opacity, and draw it over the original sprite.

Weird Build Error

31 March 2013 - 09:42 PM

Hey guys! i've been working with game maker for a while, and have never really had problems with android. anyways today i get this error on 1.1.872

 

Buildfile: build.xml does not exist!
Build failed
jarsigner: unable to open jar file: C:\Documents and Settings\Administrator\\Temp\gm_ttt_1518\gm_ttt_16080\bin\RunnerActivity-release.apk
Unable to open 'C:\Documents and Settings\Administrator\\Temp\gm_ttt_1518\gm_ttt_16080\bin\RunnerActivity-release.apk' as zip archive

Game Maker Compiles, But Wont Open Finished Exe

07 March 2013 - 04:02 AM

Title says it all, I compile my game, I tried compressed zip and installer, and it compiles fines. Then, I try to open the finished exe, and it opens a windows browse for file dialog?? Then if I select a file and hit open or okay then it says windows firewall is blocking my game, would you like to unblock? I hit yes and then nothing. Very strange. tried running as admin.. Also cannot create a standalone as it gives the Iexpress error, which I see has been adressed before.

If you guys want I can post a video, which I might go ahead and do, but its exactly as described.