Witam, chcę zrobić, aby postać jak jest w lewo obrócona to pocisk leci w lewo itd.
i mam taki kod:
W create pocisku self:
if (sprite_index=up) then vspeed=(-10);
if (sprite_index=down) then vspeed=(10);
if (sprite_index=prawo) then hspeed=(10);
if (sprite_index=lewo) then hspeed=(-10);
W evencie press space self:
instance_create(x+5,y+5,obj_pocisk)
Aha.. no i w tym problem, że jak nacisne tą spacje, to pocisk stoi w miejscu.