how to Get hurt by enemies ,please!

ennacirimehdi

  • Posts: 5
How do I make it so when I touch my enemy I will die?
and thank you

colburt187

  • *
  • Posts: 2402
do yourself a favour and do the crash course to learn the basics.

create a collision event,
When self hits actor of type,
Kill self.

ennacirimehdi

  • Posts: 5
but i didn't find how to do it
could you please show me :)

dareek

  • Posts: 91
At first I planned to write something about going to the bar and starting a fight with a bunch of guys bigger than you, but at the end I decided to put that link instead:
http://www.stencyl.com/help/start/

Go through Crash Course 1 and 2 and you will know how to do that.

ennacirimehdi

  • Posts: 5
with my all respect
 i dont think that you know how to do it

 

LIBERADO

  • *
  • Posts: 2660
Go through Crash Course 1 and 2
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

dareek

  • Posts: 91
Also stop making cross-posting about the same problem, please. There is no need for that. You will get your answer as soon as some friendly people on this forum will have time and will be willing to help you, but first of all you need to try to resolve the problems and answer some basic questions yourself. Stencyl has an excellent documentation and extremely educative and easy to follow tutorials. Check the whole HELP section of the webpage.
Invest an hour or so and you will know a lot more, for example how to detect collisions.

ennacirimehdi

  • Posts: 5
ok thanks
but please i iknow the basics
the only thing is how the player die by enemies
by touching
please


rob1221

  • *
  • Posts: 9448
No duplicate threads please.


snake13

  • Posts: 126
There should be behavior already in your library that says Die on Collision With Actor Type. Use that.
Ludum Dare Game: Connected Worlds
URL:http://www.stencyl.com/game/play/27958

sdieters

  • Posts: 2068
i will give this one shot.

Quote
ok thanks
but please i iknow the basics
the only thing is how the player die by enemies
by touching
please

my guess is that he wants to kill an actor when you press/click it on screen. this hasnt bin explained in the CC's.
use a special event which is called "When mouse [is pressed on] [self]" you can find it under "Add event >> Input >> On actor"

NOTE: just in case you didnt figured it out, you need to change the first dropdown box from "enters" to "is pressed on" manualy
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p