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
22nd August, 2003 at 07:33:09 -

I have began to develop a game about my movies main character, The bankrobber. You can see all my movies here: http://www.mapix.shorturl.com . Its in swedish though but you should understand them anyway, its not very much talk. Just do this:
Click "Gå in"
Then, in the menu, click "Ladda ner" wich means "Downloads".
There is the page where you can download my cartoon movies. They´re very violent but nobody here should be offended. (To see screens, click on the movie title, to download, click "ladda ner" to the right in the table.)

Back to TGF. As I said, Im developing a game about my present main character. Its called The Bankrobber 2 - the game. Its a platform/action game wich you see like Mario or whatever. My problem right now is those:

*My first real enemy is shooting every third second, I used the "timer" to do that. But the problem is, even after you shoot him down, he continues and rises every 3 sec. to shoot and then his back alive. Ive tried to do stuff like "paste into background" and then "destroy" but it wont work. Im sure Ive done something wrong but I cant find it. So I would need your help. Maybe right here, if you can tell just by reading this, or I can send the gam-file over MSN messenger. akrushmi@hotmail.com is my adress.

*My second problem is the "power-meter". You know, the life that will decrease if the character get hurt and increase if he gains something healthy. In this game it will be Coca-Cola
I simply dont know how to make this "power-meter". Not at all. Neither do I understand how to create lives to the character, so it will be Game over if he dies more than 3 times for example. The same thing is here, you can answer on this board or simply add me on MSN: akrushmi@hotmail.com
To talk, and I can send the file for you to examine it.

One more thing. Please dont complain on my english, Im from Sweden and not an english speaking country

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

Activ8games



Registered
  02/07/2003
Points
  463
22nd August, 2003 at 09:41:03 -

Okay, for the first problem with the rising enemy, do something like this:

every 3 seconds
+Enemy value A = 0
----shoot at player (or whatever you do here)

Bullet collides with enemy (or the condition that kills the enemy)
----destroy enemy
----set value A of enemy to 1

That makes it so that the enemy will only shoot when his value a is 0. As soon as it dies, the value is turned to 1 and the shooting action will no logner apply.

On to your power-meter problem. You will need to use the counter object.You will need to set its maximum value to the maximum amount of health the player can have. Then you would type this code:

Character is shot:
----subtract (# here) from health counter

Character gets coca-cola:
----add (# here) to health counter

Now to do lives, you can use the lives object. Simply tell the game to subtract a life when the power meter is down to 0. That's all.

Hope this helps

 
Vote Quimby!!!

Mattis Berngöran



Registered
  17/08/2003
Points
  145
22nd August, 2003 at 11:26:26 -

Thank you very much, but someone else came to help me before you
Its all fixed now but thanks anyway! Ill probably need more help in a while...

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

Activ8games



Registered
  02/07/2003
Points
  463
22nd August, 2003 at 11:37:37 -

No problemo

 
Vote Quimby!!!

Smeggy

The Smegster

Registered
  08/01/2003
Points
  1062

VIP Member
22nd August, 2003 at 14:30:07 -

awwww, help, thats what I like to see!

 
http://www.klik-union.com

Mattis Berngöran



Registered
  17/08/2003
Points
  145
23rd August, 2003 at 15:12:34 -

Thanks for the help. Now I have another problem, though.
Nu har jag rett upp allt ovanstående. Nytt problem

Im gonna imput a questin. When the player collides with a door to a toilet, a question shall appear: "Enter toilet? Yes/No". I thought this was very easy and it first seemed that way, too.
Ive done this so far:
Createt a new object, a Q/A-object. The question is as I said. Yes is the right answer. I placed the question outside the playfield for then.
I fast kicked my ass into the event editor. New event - when Bankrobber (the main character, active obj.1) collides with "toilet door", ask question. I decided where on the screen to ask it.
New event again: If right answer, jump to level 5: toilet. Then I thought I was finshed. But no. When I test to play the game, it wants to ask the question immediatly. And since I placed it outside the playfield (so that the player dont see it fucking up all the graphics and just look ugly before it shall appear) nothing will happen. Theres no bankrobber to play with and no question to answer.

If I place the question in the playfield, it appears when starting the level. This make the level work but I dont want the question to be asked immedialtly. As I said, its supposed to appear when colliding with the door. Someone who can tell what to do?
If it helps, my MSN is akrushmi@hotmail.com , feel free to add me. I can send the file for some checking then.

I appreciate help

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

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
23rd August, 2003 at 19:11:03 -

If you right click the Q/A object and select properties -> display. Uncheck the check box that says "visible at start". Now is should not display the message straight away

 
n/a

Crystal Clear (H.E.S)

Possibly Insane

Registered
  06/10/2002
Points
  2548
23rd August, 2003 at 19:28:18 -

Quote "Total":"You stupid Nebie" - "Your are all retards" - "This is and Example for any other retards out there"
dude, why be a Jackass, you were a Newbie once! if your not going to say anything nice then DONT say anything at all, So be Helpful, dont be a Jackass!.

 
HES homepage:
http://www.distinctiv-efair.com/heretic/studios
Crystal Clear Productions: http://www.distinctiv-efair.com/heretic/crystalclear

Mattis Berngöran



Registered
  17/08/2003
Points
  145
24th August, 2003 at 05:19:18 -

Total: Yes, I am a newbie.
But you seem very stupid, cos if you would have read the replies in the thread, you would have discovered that I already fixed that problem. You are the retard for sure, cos you cant read.

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

Mattis Berngöran



Registered
  17/08/2003
Points
  145
24th August, 2003 at 05:20:00 -

Klikmaster:
Thank you very much, I will do that soon!

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

Mattis Berngöran



Registered
  17/08/2003
Points
  145
24th August, 2003 at 05:30:25 -

Klikmaster again:

I cant find what you mean.. Im sure its there somewhere but I cant find it :S
Im in the Level editor and right click the q/a-object but there is no properties to choose. Only a bunch of other stuff. Neither in the event editor I can find the properties. Help me

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

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
24th August, 2003 at 07:28:31 -

Sorry, its probably something different for you, (i hav mmf).
Im sure you have to right click on it and choose one of the options

 
n/a

Mattis Berngöran



Registered
  17/08/2003
Points
  145
24th August, 2003 at 07:35:24 -

Ah, thats why then. I dont have MMF, I have TGF

Somebody who knows what to do in TGF?

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

RPG Player 2003



Registered
  27/06/2003
Points
  248
24th August, 2003 at 13:18:38 -

Right click at the question button, then click "Make Invisible".

 
"I see", said the blind men to his deaf wife.

Beware of the grass, don't step on the dog!

Mattis Berngöran



Registered
  17/08/2003
Points
  145
25th August, 2003 at 03:07:53 -

RPG Player>
I figured that yesterday
Thank you very much anyway!

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

Post Reply



 



Advertisement

Worth A Click