Jump to content


Walter Sullivan

Member Since 23 Nov 2009
Offline Last Active Apr 22 2012 03:36 PM

Posts I've Made

In Topic: Does anyone remember this one game...

14 March 2011 - 03:07 PM

I think that the game that you are looking for is Logi-Gun by Darklink570 http://jayisgames.co.../09/logigun.php
It's a cool game, unfortunately it seems that darklink570 hasn't made any more games...(I really liked the Farmhands and the earthbound tag from him...)

Hope I helped  :lol:

In Topic: text input?

04 November 2010 - 09:25 PM

I think that it should be something like
var question; //the variable that will receive the thing that the guy typed
question = get_string("Type in something:",""); //This will open a window to the guy type something
if (question == "menu") {  //if he typed exactly menu
    //do stuff
}
else { //if he typed something else
    //do other stuff
}

Well, I guess that this should work.  :lol:

In Topic: Simple question[SOLVED]

07 October 2010 - 09:50 PM

Well that's your problem. If it's solid and there's a collision event with it it'll collide no matter what's in the event. Select it to be non solid and have something like:

//in obj_player collide event with the other object:
if (other.image_index !=0) {
    vspeed=0;
    x=xprevious
    y=yprevious
}


Thank you very much, that worked great  :lol:

In Topic: Simple question[SOLVED]

07 October 2010 - 09:44 PM

Is the object or your player set to solid?



The other object is. And if I put it to not be solid anymore, then he will not collide even if his image_index>0.(And if I put the obj_player to be solid and the other object to not be solid, then it will collide even if the image_index=0  :( )

In Topic: Problem loading objects positions

04 October 2010 - 04:25 PM

Hello!


Did you know about GM's save&load functions? If you know that and still want to do your own, why? what is the difference?

Let me know.



Yes I know, but I'm trying to learn how to properly use INI files to save object positions, because maybe in the future I'm gonna try to make a multiplayer version of the game that I'm creating, and the Save/Load function of the GM wouldn't work.

If you know what I need to do to make the load of the INI not be bugged anymore, please let me know, I still can't find the problem in my code :(

EDIT:

Here is an example of how the file is saved:

[PLAYER]
Player X = 1548
Player Y = 450
ROCK
PedraX = 1664
PedraY = 448
LUMBER
MadeiraX = 1664
MadeiraY = 576
MadeiraX = 512
MadeiraY = 928
MadeiraX = 768
MadeiraY = 544
MadeiraX = 1600
MadeiraY = 512
MadeiraX = 1376
MadeiraY = 1024
MadeiraX = 928
MadeiraY = 768
MadeiraX = 1408
MadeiraY = 736
MadeiraX = 544
MadeiraY = 992
MadeiraX = 832
MadeiraY = 800
MadeiraX = 1216
MadeiraY = 352
MadeiraX = 1728
MadeiraY = 448
MadeiraX = 800
MadeiraY = 928
MadeiraX = 1280
MadeiraY = 800
MadeiraX = 1120
MadeiraY = 352
MadeiraX = 1152
MadeiraY = 608
MadeiraX = 768
MadeiraY = 1056
MadeiraX = 1472
MadeiraY = 832
MadeiraX = 1824
MadeiraY = 992
MadeiraX = 1600
MadeiraY = 1088
MadeiraX = 512
MadeiraY = 480
MadeiraX = 1312
MadeiraY = 736
MadeiraX = 1760
MadeiraY = 928
MadeiraX = 1024
MadeiraY = 768
MadeiraX = 1024
MadeiraY = 928
MadeiraX = 1376
MadeiraY = 416
MadeiraX = 768
MadeiraY = 352
MadeiraX = 800
MadeiraY = 768
MadeiraX = 864
MadeiraY = 544
MadeiraX = 512
MadeiraY = 416
MadeiraX = 992
MadeiraY = 608
MadeiraX = 1440
MadeiraY = 544
MadeiraX = 1504
MadeiraY = 672
MadeiraX = 1728
MadeiraY = 480
MadeiraX = 1152
MadeiraY = 576
MadeiraX = 1152
MadeiraY = 672
MadeiraX = 864
MadeiraY = 576
MadeiraX = 1312
MadeiraY = 1024
MadeiraX = 896
MadeiraY = 1024
MadeiraX = 832
MadeiraY = 576
MadeiraX = 896
MadeiraY = 1088
MadeiraX = 672
MadeiraY = 992
MadeiraX = 1216
MadeiraY = 992
MadeiraX = 576
MadeiraY = 384
MadeiraX = 576
MadeiraY = 1056
GRASS
GramaX = 1440
GramaY = 1024
GramaX = 1344
GramaY = 864
GramaX = 896
GramaY = 960
GramaX = 1696
GramaY = 1024


All the coordinates are correctly saved, but they are not correctly loaded  :(


EDIT2: Well, after some tests I discovered that the problem is with the WITH sentences on the LOAD(like the "while(file_text_read_string(file)!='LUMBER')"), but still don't know how to solve it. Anyone knows why this WHILE sentence is wrong?  :wacko: