Математика |
global Boot,a, n1,t0,t
--global L21,L22,L23,L24,L25,NNx2,NNy2
on beginsprite me
my = sprite(me.spriteNum).member
my.resetWorld()
Boot =0
a=0
t0=0 t =0 n1 =0 ---------------
my.newTexture("backdrop", #fromCastmember, member("sky"))
my.camera(1).insertBackdrop(1,my.texture("backdrop"), point(0,0), 0) ------------------------------------------------------------------------ set the url of member "Trousers"="Trousers3.swa" ------------------------------------------------------------------------
end
on exitFrame me --set the url of member "Trousers"="Trousers.swa" --
if (a=1) then --музыка --myButton --------------------------------------------
n1 =n1 + 1--счетчик
--------------------------------------------
--Алгорим обработки Round
--Шаг за шагом
--1 шаг
end if go the frame
end
-- создания обработки данных
--Button on myButton if Boot=0 then
--set the url of member "Trousers"="Trousers.swa" play (member "Trousers")
Boot=1 end if
end --myButton ----
on Round
------------------------------------------------------------
-----------------------------------------------------
---------------------------------------------
-----------------------------------------
--t = t0+(n1-1)*0.35 --сущность всей системы
-----------------------------------------
--Где
--h(n)-h(0) =h(n)-h(n-1) =h(n+1)-h(n) =1 --приращение
--h0-начальное условие
-- n1 - счетчик
-----------------------------------------
---------------------------------------------
-----------------------------------------------------
-------------------------------------------------------------------------------------------- member("my").model("Group01").rotate(0,0,5) -------------------------------------------------------------------------------------------- member("my").model("Group02").rotate(0,0,5) -------------------------------------------------------------------------------------------- member("my").model("Group03").rotate(0,0,5) -------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------- member("my").model("Group04").rotate(0,0,5) --------------------------------------------------------------------------------------------
member("my").model("Cylinder22").translate(-1,0,0,#world) member("my").model("Cylinder23").translate(-1,0,0,#world) member("my").model("Cylinder24").translate(-1,0,0,#world) member("my").model("Cylinder21").translate(-1,0,0,#world)
member("my").model("Cylinder25").translate(-1,0,0,#world) member("my").model("Sphere01").translate(-1,0,0,#world)
member("my").model("Cylinder26").translate(-1,0,0,#world)
member("my").model("Group05").rotate(0,0,50) member("my").model("Group05").translate(-1,0,0,#world)
end -- Round
|