Guest Beefteck Posted July 22, 2006 Share Posted July 22, 2006 Hey, i was just finishing up my program and then I thought, I wonder if games can be made in AutoIt. I knew that it could be done but I do not know how. Is there a begginers tutorial on how to make games useing auto. Also for my program in my next version I was hoping to have a picture move across the screen. Is there a code to do that? I can not seem to find anything on that other than that other post with the movable picture. Thanks for all the help members! Link to comment Share on other sites More sharing options...
Somniis Posted July 22, 2006 Share Posted July 22, 2006 What type of game are you referring to? Link to comment Share on other sites More sharing options...
Guest Beefteck Posted July 22, 2006 Share Posted July 22, 2006 A basic simple game maybe, I am not quite sure wut kind of things with games/animation that you can do with AutoIt so I would love to learn it Link to comment Share on other sites More sharing options...
zeroZshadow Posted July 22, 2006 Share Posted July 22, 2006 what do you see under "GAME" ?? since poker and other card games (called "static games") are easy to make with autoit. if u want other games, like platform games (read: mario) Then u will need to write a nice piece of code for that first XD wich will take some time, but i think its possible. But autoit might be to slow (yes its SLOW) *If u thought life couldn't get worse, u meet me *<guy> What would you give my little sister to unzip ?<friend> 10 bucks<guy> No, i mean like Winzip... Link to comment Share on other sites More sharing options...
Somniis Posted July 22, 2006 Share Posted July 22, 2006 You can make games with the GUI interface.Invertor:http://www.autoitscript.com/forum/index.php?showtopic=20028If you are referring to graphical games (3D), well, there isn't much work done on 3D stuff.. AutoIT isn't exactly meant to be a language to make games with. Link to comment Share on other sites More sharing options...
Guest Beefteck Posted July 22, 2006 Share Posted July 22, 2006 (edited) cool, thanks for that Inventor Game... this is what I ment as in a game... I want to try to make a 2d RPG Game through a GUI Interface (RPG or a retro looking game) is there any tutorials on that kind of stuff... even if it is not through the AutoIt site.EDIT 1: Ok here is a very very early example. I have a problem, What I want to do is (i have made the man) When i move left I want it to look like he is running left, right = look like moving right, jump = looks like jump, duck = looks like he is ducking. I have tried to make them all but because they are all on the "field" at once When i move up the one to move up will move, when i move down the one that is ment to go down will move. I NEED ONE MAN AT A TIME ON THE FIELD AND WHEN I MOVE A NEW DIRECTION I NEED THE OLD MAN TO CHANGE INTO THE NEW MAN. Here is an example script i whiped up for you to work with. The man rite now is a basic thing in everyone pc so this way no one does not have it. Please help out with this. adding this would make me another step closer to making a game (lol) thankyou members! expandcollapse popup#cs ---------------------------------------------------------------------------- AutoIt Version: 3.1.1.0 Author: Beefteck Script Function: This is a basic game structure. If ever used credit for the snipplets used must be credited to Beefteck. #ce ---------------------------------------------------------------------------- #include <GUIConstants.au3> Dim $cX = 0 Dim $cY = 0 $image = "img1.jpg" HotKeySet("{UP}", "Up") HotKeySet("{Down}", "Down") HotKeySet("{Right}", "Right") HotKeySet("{Left}", "Left") HotKeySet("{SPACE}", "Space") ;===================================================== GUICreate("Beefteck's Temp Game", 900, 700, 100, 30,$WS_POPUP, $WS_MAXIMIZEBOX) GUISetBkColor(0x000000) ;===================================================== $pic1 = GUICtrlCreateIcon ("shell32.dll",10, 0,0) ;===================================================== GUISetState() While 1 $Msg = GUIGetMsg() If $Msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd ;===================================================== Func Up();Move Up $cY = $cY - 5 GUICtrlSetPos($pic1, $cX, $cY) EndFunc Func Down();Move Down $cY = $cY + 5 GUICtrlSetPos($pic1, $cX, $cY) GUICtrlSetResizing($pic1, $GUI_DOCKSIZE) EndFunc Func Right();Move Right $cX = $cX + 5 GUICtrlSetPos($pic1, $cX, $cY) EndFunc Func Left();Move Left $cX = $cX - 5 GUICtrlSetPos($pic1, $cX, $cY) EndFunc Func Space();Jump Up $cY = $cY - 20 GUICtrlSetPos($pic1, $cX, $cY) Sleep(0100) $cY = $cY + 20 GUICtrlSetPos($pic1, $cX, $cY) GUICtrlSetResizing($pic1, $GUI_DOCKSIZE) ;===================================================== EndFunc Edited July 22, 2006 by Beefteck Link to comment Share on other sites More sharing options...
GrungeRocker Posted July 22, 2006 Share Posted July 22, 2006 well i tried it now with two games... (see tankwars and spacwar in my signature) yes it is possible, but you must be good, to get it fast XD [font="Verdana"]In work:[list=1][*]InstallIt[*]New version of SpaceWar[/list] [/font] Link to comment Share on other sites More sharing options...
nfwu Posted July 23, 2006 Share Posted July 23, 2006 BTW, full-blown 3D graphics are painfully slow in AutoIt... you get what - 5 minutes per frame? Then again, mine always errors out before it can complete 1 frame... #) TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
Paulie Posted July 23, 2006 Share Posted July 23, 2006 BTW, full-blown 3D graphics are painfully slow in AutoIt... you get what - 5 minutes per frame?Then again, mine always errors out before it can complete 1 frame...#)Unless you just use a 3d image and GuiCtrlCreateImage it into the Game Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted July 23, 2006 Share Posted July 23, 2006 (edited) idk i was bored and was reading some topics and i saw your uh quote there paulie , ummmm i think i said that hahahahah (not sure though xD) o and just to stay on topic there was a Really nice tetris game in the scripts and scraps check it out Edited July 23, 2006 by thatsgreat2345 Link to comment Share on other sites More sharing options...
Paulie Posted July 23, 2006 Share Posted July 23, 2006 paulie , ummmm i think i said that hahahahah (not sure though xD)I don't understand, where was this said by you? I know it's been done, but i don't see it in this thread Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted July 23, 2006 Share Posted July 23, 2006 hahhaah idk i remeber saying it somewhere maybe it wasnt here ahhaha anyways bye shall be back later Link to comment Share on other sites More sharing options...
Guest Beefteck Posted July 23, 2006 Share Posted July 23, 2006 well i tried it now with two games... (see tankwars and spacwar in my signature)yes it is possible, but you must be good, to get it fast XDssooo, is there a scrpit because really all that i need it to do is change from one .gif to another when a diffrent direction is pressed... Link to comment Share on other sites More sharing options...
zeroZshadow Posted July 23, 2006 Share Posted July 23, 2006 well, i'm in the gamemaking stuff, so here are some ideas. preload all the images u wanna use for the character (sprites) then make a var called spite_index and a timed function that checks if the var changes, if it does take the new value in sprite_index and use it as sprite for the char. so u can link sprLeft to c:\lookingleft.bmp or sprWalkLeft[1] to c:\walkleft1.bmp (every step gets into the array, so u can make a loop to get trough it.) if i have some spare time next week, i'll help u a little with ur project. add me on msn. *If u thought life couldn't get worse, u meet me *<guy> What would you give my little sister to unzip ?<friend> 10 bucks<guy> No, i mean like Winzip... Link to comment Share on other sites More sharing options...
Xenobiologist Posted July 23, 2006 Share Posted July 23, 2006 HI, there are several like this games already written in Autoit. Have a look at CtachtheClown. Search for it. So long, Mega P.S.: In the German Forum there was already a Game-Contest. Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
nfwu Posted July 23, 2006 Share Posted July 23, 2006 (edited) or visit the Game Programming Wiki atgpwiki.org#) Edited July 23, 2006 by nfwu TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
Naufuge Posted July 23, 2006 Share Posted July 23, 2006 **Code Snipet Credits go to beefteck** @beefteck: I think it would be better to use these functions, i edited them so it will detect your location in comparison to the size of the gui, so when your character is too close to the edge he wont move anymore, so the character can no longer leave the screen. this may be a bit confusing so ill upload my script so far. Game.zip ; extract to any folder, and run the Game.au3 script, the character should be able to move (not the walking graphics yet) but when reaching the edge of the screen, he should stop... i hope this helps, if not...whatever. i tryed... Link to comment Share on other sites More sharing options...
Paulie Posted July 23, 2006 Share Posted July 23, 2006 I made a basic mouse follow game, search for "mouse follow" in scripts and scraps and you should find it Link to comment Share on other sites More sharing options...
Guest Beefteck Posted July 23, 2006 Share Posted July 23, 2006 (edited) **Code Snipet Credits go to beefteck** @beefteck: I think it would be better to use these functions, i edited them so it will detect your location in comparison to the size of the gui, so when your character is too close to the edge he wont move anymore, so the character can no longer leave the screen. this may be a bit confusing so ill upload my script so far. Game.zip ; extract to any folder, and run the Game.au3 script, the character should be able to move (not the walking graphics yet) but when reaching the edge of the screen, he should stop... i hope this helps, if not...whatever. i tryed... wow thanks this is what i was going to need help for next anyway what folder does it need to be in because it will just show a blank GUI box... i would like to try this out to see if this is somthing that we could try in our game... Edited July 23, 2006 by Beefteck Link to comment Share on other sites More sharing options...
Naufuge Posted July 25, 2006 Share Posted July 25, 2006 (edited) it should be able to be in any directory, you just have to make sure that the folders "Include", and "Sprites" are inside it also. i havent added walking frames yet, the character just moves while facing the direction he is moving, ill work on it later. (it should be pretty easy, if anyone has heard of it, its called RPGMakerXP and uses a language called Ruby (RGSS) if you look dl the trial of RMXP you can get all the scripts and see how they make the walking frames for each direction, i think thats how im going to figure it all out.) Edit: sorry my bad, when i uploaded the first file i didnt have the directions set, try this, if it still doesnt work, ill compile the whole thing and try that... here is the correct files. Game.zip Edited July 25, 2006 by Naufuge Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now