Jump to content


kennypu

Member Since 27 Dec 2005
Offline Last Active May 27 2011 09:12 PM

Posts I've Made

In Topic: Roof "alpha" Help. *solved*

28 November 2009 - 08:58 PM

When you are under the roof, all other instances outside the roof should be dark
So you can't see out when you are inside

like in some old school rpg games? the easiest way to do this is have a black sprite that covers everything except for the house, and when you enter the house, make that sprite visible, so only the house is shown. Other than that, it depends on how things are drawn. For example, if you have all the stuff outside made out of objects, you can deactivate or make all the objects outside invisible, so it is not shown.

In Topic: Iwbtg Games

28 November 2009 - 08:52 PM

Hey guys,

Do you guys know what the window dimensions typically are in IWBTG and like games? Is it 800 x 800 or something?

Also, where can I find IWBTG sprites?

Any help is appreciated.

what is an IWBTG game? you can't expect people to understand what you are saying.

In Topic: Syntax Of A For Loop With Two Variables

28 November 2009 - 08:49 PM

o duh...
for (xx = left && zz = bottom; xx <= right && zz <= top; xx += 1;) {some code; zz+=1;}

(btw the double for loop DOES NOT WORK, but thanks anyway)

double for loops DOES WORK, its used for working with multi-dimensional arrays. You usually can do it in one of either ways:
1.
for(i=0;i<10;i+=1)
for(j=0;j<10;j+=1)
{
	{
		   //do something
	}
}
Or
2.
for(i=0;i<10;i+=1)
{
	for(j=0;j<10;j+=1)
	{
		  //do sometihng
	}
}
I tend to do it the 2nd way because it looks neater, and causes less confusion if you're coding a lot. For your code, you will do something like this:
for(xx = left; xx <= right; xx +=1)
{
	 for(zz = bottom; zz <=top; zz +=1)
	 {
			 //some code
	  }
}

In Topic: Does Execute_string Return True Or False?

28 November 2009 - 08:44 PM

Does execute_string return true or false? The manual does not specify.

if (execute_string(keystring))

//Check next notes
check_count=1
while (song_controller.notetimes[arrayplace+check_count]=song_controller.notetimes[arrayplace])
  {
  keystring+=" and keyboard_check(ord('"
  keystring+=string(song_controller.notecolors[arrayplace+check_count]+1)
  keystring+="'))"
  check_count+=1
  }

I don't think execute_string() returns any value at all. you can try yourself, but if you want to check for a value, you will probobly have to set a variable using the 'keystring' you have there.

In Topic: Waves Of Enemies In One Room

26 November 2009 - 04:17 AM

nooo thats not the point of the variable. first you set the variable to for example, 1 at the beginning of the game. now after every timeline event, you add it by one, so you know that its getting harder. now all you have to do is use a if statement to do something, or if you want to you can make enemies stronger by adding,multiplying,etc. the variable to their hp, or strength or whatever.