The Daily Click ::. Forums ::. Klik Coding Help ::. TGF newbie - I need help [with reserrecting badies and power bars]
 

Post Reply  Post Oekaki 
 

Posted By Message

Mattis Berngöran



Registered
  17/08/2003
Points
  145
25th August, 2003 at 03:11:24 -

Now I have another question (I suck, I know)!
Its like this:
When the player comes to a door, a question appears: "Enter toilet? Yes/no" and if he or she chooses Yes, he/she will enter a little toilet room wich is a dead end. When the player exits the toilet, he shall come back where the door into it was, and with the same enemies killed. How do I do this? It allways gets like he must start all over the level and kill all enemies again. It must work in some way but I dont know how.
As allways, I really appreciate help!

 
www.mapix.shorturl.com - my own movies and soon games

AsparagusTrevor

Mine's a pint of the black stuff

Registered
  20/08/2002
Points
  2364

Game of the Week WinnerHas Donated, Thank You!VIP MemberEvil kliker
25th August, 2003 at 06:58:44 -

It's comedy when someone calls someone else a retard or the like and comes off like a bigger retard themselves. What the fuck's a "Nebie," and what does "Your are all retards" mean?

 
Image

ChrisB

Crazy?

Registered
  16/08/2002
Points
  5457
25th August, 2003 at 07:47:32 -

"Nebie" is retard speak for Newbie
"Your are all retards" = "I'm a lame-ass hobo and I want to inflict anger while looking cool!!!11"

 
n/a

Mattis Berngöran



Registered
  17/08/2003
Points
  145
25th August, 2003 at 08:54:04 -

Please dont mind about his stupid comments, and help me instead

I really need it.

 
www.mapix.shorturl.com - my own movies and soon games

The Chris Street

Administrator
Unspeakably Lazy Admin

Registered
  14/05/2002
Points
  48487

Game of the Week WinnerClickzine StaffAcoders MemberKlikCast StarVIP MemberPicture Me This Round 35 Winner!Second GOTW AwardYou've Been Circy'd!Picture Me This Round 38 Winner!GOTM December Third Place!!
I am an April FoolKliktober Special Award Tag
25th August, 2003 at 08:57:33 -

Total, behave yourself or you'll be banned.

 
n/a

ChrisB

Crazy?

Registered
  16/08/2002
Points
  5457
25th August, 2003 at 10:14:37 -

Mattis: You will need to use either INI or a global storage object (1000 Global Values is fine). You'll also need Cellosoft's Fast Loop object.

Add all of your enemies (that die) to a qualifier, i.e. Group.Enemies. Now add these events:

• Start of Frame
(Group.Enemies) : Spread value 1 in Alterable Value A (you can use any free Alt Value, but make sure you change the other events in this post!)

• Start of Frame
(Fast Loop): Start loop # 0 for Count( "Group.Enemies" ) loops

• (Fast Loop): Loop Trigger # 0
+ (Compare 2 general values) getgloval( "1000 Global Values", Loop Step( "Fast Loop object", 0 ) + 1 ) equals 1
+ Alterable Value A of (Group.Enemies) = Loop Step( "Fast Loop object", 0 ) + 1
(Group.Enemies) : Kill the enemy (whatever code you use to kill the enemy, you put it here)

• (Event where your enemy is killed)
(1000 Global Values) : Set Global Value Value A( "Group.Enemies" ) value to 1



For other levels, you'll need to change the value you spread AND change the + 1 part of the expressions above, to the value you spread + 1. Example:

Spread value 20 in Value A
Loop Step( "Fast Loop object", 0 ) + 21

You must make sure that the spreaded values do not overlap the other levels'! To avoid this, set the value to the number of enemies in that level.

 
n/a

Pkeod

Oontz Oontz Oontz

Registered
  19/11/2002
Points
  93

VIP Member
25th August, 2003 at 10:50:18 -

What fun. Did that help? No.

but just a question... will you have a screen where you will be able to buy more stuff? yay... I want to be a bank robber...

Like I said; what fun. Still no help.

 
Faerie Solitaire - Get it now:

http://www.create-games.com/download.asp?id=7792

ChrisB

Crazy?

Registered
  16/08/2002
Points
  5457
25th August, 2003 at 11:00:03 -

What does that mean? (That boy needs therapy)

 
n/a

Mattis Berngöran



Registered
  17/08/2003
Points
  145
25th August, 2003 at 15:18:00 -

I have another problem now, but its more "bug related".
In my title screen, I simple want music playing. I choose one of the MIDI-files wich came with the Games factory download. New event - always - play and loop March06 - play 10 times (for example). Nothing wrong, eh? If it is, I cant figure.
But when I try Run Game/Level, the game fucks up. The music wont start, and nothing works. The only thing to do is ctrl+alt+del and quit TGF. Very irritating. I cant do a game without music.

Anyone who had the same problem, and knows how to solve it?

 
www.mapix.shorturl.com - my own movies and soon games

Activ8games



Registered
  02/07/2003
Points
  463
25th August, 2003 at 18:18:41 -

The problem is the you used the "Always" condition. That will make your action repeat continuosly and since it has no time for the music to play, your game screwed up.

Replace "always" with "Start of Frame" and you should be fine.

 
Vote Quimby!!!

Activ8games



Registered
  02/07/2003
Points
  463
25th August, 2003 at 18:19:37 -

Sorry posted twice for some reason.

Image Edited by the Author.

 
Vote Quimby!!!

Mattis Berngöran



Registered
  17/08/2003
Points
  145
26th August, 2003 at 07:59:54 -

Hm, I think you mean "start of level". At least, that worked. Thank you very much! I wish more people were helpsome to newbies and not as total, a jerk, or as we say in Sweden, a fjortis. (Dunno if that means something in english though)

 
www.mapix.shorturl.com - my own movies and soon games

Activ8games



Registered
  02/07/2003
Points
  463
26th August, 2003 at 10:54:27 -

As far as I know fjortis doesn't mean anything. Glad my thing worked. Start of frame is in MMF terms, I don't remember much from TGF.

 
Vote Quimby!!!

Mattis Berngöran



Registered
  17/08/2003
Points
  145
26th August, 2003 at 11:02:46 -

Fjortis is swedish so it probably doesn´t mean anything

 
www.mapix.shorturl.com - my own movies and soon games

ShadowCaster

Possibly Insane

Registered
  02/01/2002
Points
  2203
28th August, 2003 at 02:39:01 -

Topic Updated (Previously "TGF newbie - I need help")

Please use descriptive titles in the future.

Mike

 
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert
   

Post Reply



 



Advertisement

Worth A Click