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 - James (Aka: The Geek)

#1
I need my game to delete the item selected on the listbox when the user presses a button.

I have tried something simalar to this:

Ã,  Ã, int number = list.SelectedIndex;
Ã,  Ã,  Ã,  Ã,  list.RemoveItem(number);

When I run the game it says invalid index ???

Does anybody have any suggestions?
Ã,  Ã,  Ã, 
#2
Riddle me this,lets say I am making a game (I'm not right now but I am curious about how this would work) :-\
and I have a function like this:

int red;
int blue;
int green;

function addsome (){
int ran random (2)
if (ran==0)red==1;
if (ran==1)red==2;
if (ran==2)red==3;
Ã,  }

I need to use this function many times but, often times I
need to do this with other ints.Ã,  :o
Is there any I could do this without having to write many functions and instead do something like this:

function addsome(int,red);
function addsome(int,blue);
function addsome(int,green);

Please explain to me how to do this
The first person to reply gets one million dollars ;D
(just kidding) ;)
#3
ok i have a questions

is there any way i can let the player type any number and it be stored as an int(And can i use decimal)


i have an older version of ags (i got it in october) and i cannot upgrade
#4
I am trying to make an avi movie display when my character walks in a room. ;D
How do i do this? ???
SMF spam blocked by CleanTalk