فيزياء الالعاب - لعبه انقذ القرود

2

Index

Tagged

Stats

3,662 visits, 5,605 views

Tools

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

مرحلة كتابة الاوامر البرمجيه في صفحة Event sheet

21. لكتابة الاوامر نضغط على Add Event , الاوامر في الكونستركت مكونه من جزئين الشرط والاكشن في حال تحقق الشرط ينفذ الاكشن وفي حال عدم تحققه ينتقل نظام الكونستركت للأمر التالي وتستمر عمليه التحقق من الشروط وتنفيذ الاكشن المرتبطه بها.

22. في بداية اللعبة نريد من نظام اللعبة أن يلغي الجاذبية الارضية من عنصرالـ BigBlock فنكتب الامر التالي :

(Event(1:

Co: system >> on start of layout

Ac: BigBlock >>set world gravity>> 0

23. اذا ضغط اللاعب بزر الفارة الايسر تدمر SmallBlock :

(Event(2:

Co:Mouse >> one object clicked >> left+ SmallBlock

Ac: SmallBiock >> destroy

24. اذا ضغط اللاعب على SmallBlock تختفي الجاذبية من BigBlock:

(Event(3 :

Co: mouse >> on click >> left

Ac: BigBlock >> set world gravity>>10

25. اذا ضغط اللعب على زر الفارة الايمن تعاد اللعبة :

(Event(4:

Co: mouse>> on click >> right

Ac: system >> restart layout

26. اذا اصطدم MonkeyOne بـ taz يدمر:

(Event(5:

Co: MonkeyOne>> on collision with another object >> TazLeft

ثم نضغط كلك يمين على السهم الاخضر ثم add "or" block ثم add another condition كما في الصورة التالية:

Co: MonkeyOne >>on collision with another object >>TazRight

Ac: MonkeyOne>> destroy

27. اذا اصطدم MonkeyTwo بـ taz يدمر:

(Event(6:

Co: MonkeyTwo >>on collision with another object >> TazLeft

ثم نضغط كلك يمين على السهم الاخضر ثم add "or" block ثم add another condition

Co: MonkeyTwo __ on collision with __ TazRight

Ac: MonkeyTwo __ destroy

28. اذا اصطدم MonkeyThree بـ taz يدمر:

(Event(7:

Co: MonkeyThree>> on collision with another object >> TazLeft

ثم نضغط كلك يمين على السهم الاخضر ثم add "or" block ثم add another condition

Co: MonkeyThree>> on collision with another object >> TazRight

Ac: MonkeyThree __ destroy

  • 0 Comments

  • Order by
Want to leave a comment? Login or Register an account!