Jump to content


SoulTaker0227

Member Since 24 Jul 2011
Offline Last Active Jan 05 2013 08:42 AM

Topics I've Started

Better way to do muiltiplayer

10 September 2012 - 03:03 PM

Hay guys... I dont know if this is the right place to post this but i found it to be the best..
I found a better way to do muiltiplayer (ok well easyer)
Why dont you just create a game in a shared folder and let the game load and save data to files, then the other pc can just connect to that folder and read and write the data there?
Dont you think this will be a lot more statick and reliable, i made a chatting program that hacks the schools main computer and then my friends just run it from a shortcut and it saves all
the messages and loads thim again... here is my script for the saving and loading, you can use a other file tipe than a .txt as long as the origenal file tipe was a .txt becouse every file
tipe saves sertain varubles that determan how the file should be loaded, like me i created a .txt and changed the extention to .ctapp and it still worked perfectly:)
Here is my code:
text_save=obj_text_reader.text//sets the text reader var for instant reading
text_save+='#' + global.name + " : " + text//ads the username and the var text
text=""//sets the var text to noone
path=global.ph+"Data\text.txt"//determain the path
textfile = file_text_open_write(path)//open the text file
file_text_write_string(textfile,string(text_save))//save the var to the text file
file_text_close(textfile)//close the text file
btw at the biggining script of the room the var "Global.ph" is set for the path, it is set trugh Settings.ctapp so that i dont need to bring game maker and edit the var every time
Here is the script for that:
settings = file_text_open_read("Settings.ctapp")//open the txt(it was .txt origenaly i just changed the extention)
global.ph = file_text_read_string(settings) + "\"// adds a "\" just to make it easyer
file_text_close(settings)//closes the text file

What do you guys think?

3d less lag with higher pollys

28 July 2012 - 05:46 PM

I have an idea to lower lag in 3d but i dont know if an way has alredy been made( if there are please send me the link) i found nothing but here goes..
My idea is to not draw the triangles of a model in 3d that cant be seen by the camera, i think this will be very good becouse lets say you have a model
with 2000 triangles and game maker(correct me if i am wrong) draws all 2000 but if game maker onley draws the triangles that the cammera can see
it means that you can have twice as many models as usial. so if anybody can help me with this or send a link please do. btw i wasint shure where to post
this i desided to post it at this form becouse i have asked you a question and i would realy apresiate it if you awnser:) lol

Stop Drawing Models Outside Of Fps View

01 July 2012 - 01:15 PM

Hay guys Idn if this has been done before i did not find anything of this sort but the following script stops 3d models to be drawn
1. You need a sprite (cone sprite) this will be the "view"
2nd. make 2 objects(obj view and the obj you want deactivated)
3rd put this in obj_view's step event
direction=Yourplayerobj.direction
x=Yourplayerobj.x
y=Yourplayerobj.y
image_angle=direction
"Yourplayerobj"is your player object(just rename it)
4rth put this in your other object
   if place_meeting(x,y,yourviewobject)
{
"your draw code"
}

"yourviewobject"is your view object

"your draw code" is all the code in the draw event of the object that should disipear if player is not looking at it

Pistol 2 Need ideas

21 May 2012 - 08:31 PM

:ermm: Hay guys!! I finished my beta version of Pistol 2!

Its redy for download
so please download and tell me what you think
Download the game here

Progress:[##___] 30% complete for Pistol2.1
:rolleyes:-  new enemies, of course. and a badass boss!
:rolleyes:-  new levels with different themed environment
:down:-  more weapons. maybe a shop too, where you buy upgrades for weapons
:rolleyes:- perk system
:rolleyes:- co-op mode

Help needed -
+ Story (Put your name in credits)
+ Muiltiplayer Mode(Put youre name in credits)

Solving lag with maths!

24 March 2012 - 03:13 PM

Hay world!!! I got something amazing  to tell the world!!!
Is it possible to stop lag completely???
Well the answer is YES !!! THIS IS NOT A JOKE!!! I found a way to stop lag completely without external dll and all that *  
So here is the code i have been working on what it does it sets a global valuable to adjust to the fps of the game for example lets say the room speed is 30 and the fps is 15 then the speed will be doubled!
It still has a few bugs but it works great! the fps can be 1 and it still runs like the fps is 30! now here is the settings...
First make a global val something like global.framespeed=0 in your first room's scripts then make a other obj that will be in your level room and make a step event (any one) and past this in

global.yourvar=roomspeed/fps/2*theobject's speed

What it does it gets the number of speed it should multiply by then it adds the right number to the global var so that your obj always stays the "same speed" well it will look like that and now for the object you want to move
just add a script anywhere and say

speed=whateverspeed+global.yourevar

and there you go:)
Solving Lagging with maths!!!

Pleas commit and tell me what you think:)

oh yeah! It doesin't work if the frame rate is smaller then 10 or 5 because everything moves faster but it only shows 5-10 frames per second but it will stop the game getting to slow motion the best room speed fit for this is 120 then it can drop a whole 100 frames and still look fine:)