Jump to content


Nefault1st

Member Since 16 May 2011
Offline Last Active May 05 2013 03:47 AM

Posts I've Made

In Topic: Deactivate/Activate Objects With Same Depth

05 April 2013 - 09:57 PM

Using the object editor, just set the starting depth of the objects that you want to stay on top to a lower number than the depth of the other objects. That way they're always on top of the other objects.

but what about the platforms with the same id? and some objects need to be the same depth.


In Topic: Slow Saving And Slow Executing Project File?

27 March 2013 - 08:04 PM

Alright I'll give it a shot. Thanks for the help, mate.


In Topic: Slow Saving And Slow Executing Project File?

26 March 2013 - 04:12 AM

For bigger games it's quite advised to load resources externally. This applies to Backgrounds and Sprites as they are 32-bit PNG files, and those can get quite heavy.  Game Maker seems to be able to keep up with a lot of sprites, as long as you don't load them all up at the same time. So import the resources in-game only at the time you need them and be sure to unload them when they are not so they don't cause lag by being in memory!

Ok, so it sounds like it's at the point where I'll need to load the sprites externally. I didn't have a problem with doing that for the sound effects...but my only concern with sprites is that I don't know how it'll work as far as putting them in the room editor. I know they'll all be filled with ?'s after I delete the sprites but that doesn't help with exact placement. Is there something I can do to fix that?


In Topic: Camera Look Ahead Issue

15 March 2013 - 07:02 PM

x+=(xTo-x);

to delay
x+=(xTo-x)/numsteps

Numsteps of 1 is instant move, the larger the numsteps the more delayed the action will take. Still it will remain smooth and natural.


If you want to look ahead horizontal platform, hspeed based movement
xTo=player.x+hspeed*how_far_ya_want

I see...this right here seems to work the best, though I need to modify it a bit more to make it perfect. Anyway thanks icuurd12b42! As usual, you're a lifesaver.
And thanks for helping as well Spikehead777. That code would work too.

In Topic: Camera Look Ahead Issue

14 March 2013 - 01:20 AM

my code does it.. impliment it and it will work... its not the same as you have m8 trust me Posted Image


with one correction though... on the player keypress events the camera will need to be += to 2 not 1. my bad

Ok I see, well I'll look into it more. Thanks for helping!