Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> Game Maker Question (i), What does "i" mean??
United States
kremling
Posted: Jul 12 2008, 02:00 PM
Quote Post


Casual Member
[*][*][*]

Group Icon
Group: Members
Posts: 923
Member No.: 3240
Joined: 28-January 07

Status: (0d) [--]


I have been seeing this in some tutorials, and I just want to know what the heck it means! Could someone please tell me? The only thing I think it means is the object id, but I don't know for sure. Help please!

CODE
{
 maxid = -1;
 maxpower = 0;
 for (i=0; i<instance_count; i+=1)
 {
   iii = instance_id[i];
   if (iii.object_index == unit)
   {
     if (iii.power > maxpower)
       {maxid = iii; maxpower = iii.power;}
   }
 }
}


--------------------
My Reference_1
Deviant Art
"Doing the wrong thing is always right"
Drawings by mfggers: Omnomlicous - Jazz - Bip
user posted image
PMEmail PosterUsers Website
Top
Canada
Mewizkuit
Posted: Jul 12 2008, 02:01 PM
Quote Post


CHARMANDER
[*][*][*][*]

Group Icon
Group: Members
Posts: 4397
Member No.: 2508
Joined: 16-August 06

Status: (0d) [--]


I'm guessing its a variable that was set by something else.

But I don't know what version of gamemaker you are talking about so I don't know.


--------------------
QUOTE
whenever i feel like clicking "reply"
i stop and think to myself, "why"
will it be a post to be remembered by?
or will i scare off a n00b and tell him to die?
PMEmail PosterMSN
Top
Greece
rogueyoshi
Posted: Jul 12 2008, 02:48 PM
Quote Post


Watch out for that zoo
[*]

Group Icon
Group: Members
Posts: 346
Member No.: 3742
Joined: 8-May 07

Status: (0d) [--]


(i)terations


--------------------
#SNKPlaymore @ EFnet
Don't have a clue how to play KOF? Want one? http://tinyurl.com/kofguide
Tell SNK their netcode sucks ASS!! http://tinyurl.com/snkonline

user posted image
PMAOLYahooMSN
Top
United States
Xgoff
Posted: Jul 12 2008, 03:45 PM
Quote Post


<):|
[*][*][*][*][*]
[*][*]

Group Icon
Group: Members
Posts: 52341
Member No.: 24
Joined: 13-October 03

Status: (0d) [--]


variable representing the current loop iteration (ie what value the loop index is on)

pretty damn useful, btw


--------------------

This post may contain original research or unverified claims.
Please disregard the above information and contact an administrator.

DISCLAIMER: by sending me (xgoff) a private message, you agree to the directives and their terms specified henceforth:
DIRECTIVE 1 (APPLE): i may or may not reply promptly or at all; and there are no guarantees to the usefulness of the reply. i may not acknowledge whether i have even received your private message
DIRECTIVE 2 (CHILE CON CARNE): as per my view, "private" applies only to the initial transaction, and the material of your message may or may not be made public at my discretion; as this will more than likely be a post in the CCC or IRC, you may not be able to view it
DIRECTIVE 3 (FEATHER DUSTER): you must address me (xgoff) as "Sir Master Xgofficus his Highest and Most Awesome the Third"; failure to comply with this term may invoke one or both of the above directives, and i will leave a burning bag of **** on your doorstep
DIRECTIVE 4 (BOOTSTRAP): if you have read this disclaimer, please private message me promptly, in compliance with the above terms, so i can ensure you are capable of following directions you idiot
this concludes the test of the emergency disclaimer system, your scheduled programming will now continue. satisfaction guaranteed, and 100% cash back available under certain circumstances; restrictions may or may not apply within your place of residence
NOTICE: these directives and their terms may change at any time, without notice; as a private message transaction to myself assumes an understanding and full compliance of the above, you should ensure you are fully aware of the above terms at any point before sending a private message; any message received is assumed to have been sent in compliance with the above

QUOTE
(5:25:58 PM) Mikau: xgoff
(5:26:00 PM) Mikau: guess what
(5:26:04 PM) Xgoff: chicken butt
(5:26:09 PM) Mikau: **** you
PMEmail PosterUsers WebsiteAOLMSN
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

  Topic Options Topic Options Reply to this topicStart new topicStart Poll

 




[ Script Execution time: 0.0495 ]   [ 13 queries used ]   [ GZIP Enabled ]   [ Server Load: 0.43 ]