Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - scott11164

#1
Hi this is my first post not sure if this should be in the advanced forum or not but here goes

what i am trying to do is make an adventure game where i have a player character that every now and again will have to battle through stages, the way i was going to do this is have an external text file for each of the characters with the name of the attack and the power of that attack, iv looked through some posts on the forum and had i look through the help files then give it my best shot but cant get it to work, here is my code please can some1 show me my amature errors ;-D;

Global Script
Code: ags
function Attack_OnClick(GUIControl *control, MouseButton button)
{
int number;
File *input = File.Open("ScottAttack.txt", eFileRead);
number = input.ReadInt(2);
input.Close(0);
}


Text File
Code: ags
# Scott-Attack
 Bite: 10
 Uppercut: 15
 Lowblow: 15
}


At the moment this seems like im biting more than i can chew but if any1 can help me script this right then my demo game will be near completion :)
SMF spam blocked by CleanTalk