• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

AutoIt RPG Game

Status
Not open for further replies.

Zisly

Intermediate OT User
Joined
Jun 9, 2008
Messages
7,338
Reaction score
120
I started to create a Tibia similar game in AutoIt just for fun.
It will use text files with simple 0,1's to see if a sqm is walkable.
Walk left & right works and so on, have started on up & down now :p


Updates:
Code:
10th February 2009 - Map system,walk system
12th February 2009 - Animation added
16th February 2009 - Added a "npc" which walks around.

Here is a ss of the current thing;




And this is how the "walkable file" looks like for that map :p
Code:
1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.
1.1.0.1.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.
1.1.0.1.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.
1.1.0.1.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.
1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1

Why the dots?
I use stringsplit in the load map function.

Very simple, I know ^^

Controls:
Move character: Arrow keys
Turn character: Ctrl+direction

-REMOVED LINK-

Download source here:
 
Last edited:
Shouldn't it be 0 instead of 1 and so on? Since walkable = 1 ?

Doesn't really make a difference, but it makes more sense.. :p
 
Well I took 0 as you use it in most games with this system.
;
non walkable?
0=no (you can walk there)
1=yes (you can't walk there)
 
Ah, alright then.. :p
:p
It will be hard to make it look good, as you can't execute two functions at once in AutoIt :(
And it is slower than VB.
 
Here is the "load map" function.
Tired atm, will improve it later on :p
Code:
Func LoadMap()

$mf = @ScriptDir &"\map.txt"
$m_l=_FileCountLines($mf)
$m=StringSplit(FileRead($mf),".")

Global Const $MAX = $m[0]
Global Const $MAY = $m_l

Dim $map[$MAY][$MAX]; y,x


For $o=1 To $MAY-1

$line = FileReadLine($mf,$o)

$m=StringSplit($line,".")

For $i=1 To $MAX

	$map[$o][$i] = $m[$i]
Next
Next
;- do something HERE
EndFunc
If you know a better way just tell me :p
 
Here is the character, it's not pretty but it will do :p
 
aha:) pretty nice XD Keep development ^^ I like it xd
 
I don't know how to create a GUI U.u The program in the readme won't install on vista 64bit =(.
 
I don't know how to create a GUI U.u The program in the readme won't install on vista 64bit =(.

huh?
Aha, you mean Koda?


Anyways here is a new ss, I'm learning what I can do with the Prospeed functions.

My char "in-game" :p :
afc385.jpg


And I know my tiles look like shit :/

Edit: I've fixed the "block system" now, finally xP
 
Last edited:
Here is the guy in all directions, I saved in .JPG bc I don't want it stolen xD
Not that its that good, but took some time.


It looks much better in real quality :)
 
Will be fun indeed to see how this turns out. :)
 
This won't be like Tibia, decided not to make a "copy", it will be a more 2d like game :)
 
Ok, scroll has been added the bug when moving the game window has men fixed.

-REMOVED LINK-
 
Last edited:
bug when moving window has NOT been fixed in the version you uploaded at least.
Noticed that now, it worked yesterday for me.
My excuse will be; Your not supposed to move the game window

is this some type of offline game or?
Offline atm at least.
 
Last edited:
Status
Not open for further replies.
Back
Top