GameMaker LT pamoka 13#2D Blokų naikinimas.




Akmuo-create:

hp=10;

step :

if (hp<=0)
{
instance_destroy() 
}

Left pressed:

 if object_exists(Player)
{if distance_to_object(Player)<30
{
hp-=5;
}}

Komentarų nėra:

Rašyti komentarą