ludum-dare-23/objects/obj_powerups/Step_0.gml

15 lines
295 B
Plaintext

tagx += (tagspeed*cos(degtorad(tagdir)))
tagy -= (tagspeed*sin(degtorad(tagdir)))
if tagx <= 0 or tagx>= 480
{
tagdir = 180-tagdir
}
if tagy <= 0 or tagy >= 320
{
tagdir = -tagdir
}
x = tagx + __view_get( e__VW.XView, 0 )
y = tagy + __view_get( e__VW.YView, 0 )