home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 12: Textmags & Docs / nf_archive_12.iso / MAGS / TEXTMAGS / 3RD_DIM / 3RDDM18.MSA / BRUSHES / ANIM_BRU.TXT next >
Text File  |  2004-06-27  |  6KB  |  147 lines

  1.                           THE THIRD DIMENSION
  2.  
  3. BRUSHES AND BRUSHANIMS
  4.  
  5. I have had a lot of requests for more information on the use of 
  6. brushanims and most members mentioned on their questionnaire that 
  7. they would like to know a little more on this subject.
  8.  
  9. The first question must be- "what is a brush or brushanim?" 
  10. A brush is a piece from a picture that has been cut out and used 
  11. as a smaller picture.A brushanim is a set of 2 or more little 
  12. brushes (pictures) used to make a small animation.
  13. The brush/brushanim feature only works in kit 2 and involves the 
  14. user in selecting parts of a picture to cut/crop out and then use 
  15. as a brush, or to use several to create a brushanim.So what use is 
  16. this to me?, you may ask.Well brushes could be used on your 
  17. border to tell the gameplayer that he/she has now picked up a 
  18. gun.For example -if a person was to pick up a gun,you could make 
  19. a brush appear in a small window with the name "weapon" above it 
  20. in your border and the brush would have a small picture of a gun 
  21. drawn onto it.Later on in the game the player could find a larger 
  22. weapon such as a laser gun,you could then replace the previous 
  23. brush picture with a new brush showing a laser gun drawn onto it.
  24.     
  25. To make things even more interesting,you could use a brushanim 
  26. instead of just a brush.Imagine a picture of a laser gun 
  27. appearing onto your border that showed a weapon changing colour 
  28. and shape.This is posiible by creating a brushanim which is 
  29. simply a selection of small pictures played in a sequence one 
  30. after the other.Remember drawing little stick men on the edge of 
  31. several pages of a book and then flicking the pages to give the 
  32. illusion of the stick man moving? No? well neither do i but it is 
  33. a similar principle of how brushanims work.   
  34.  
  35. How to create a brushanim.
  36.  
  37. 1- Draw some small pictures in your art package and then save as 
  38. NEO,PI1 or as a IFF/LBM picture etc or use the ANIM_BRU.IFF example 
  39. provided on this disk.
  40.  
  41. 2- Load 3DEDIT then goto GENERAL menu and press on BRUSHES then 
  42. CUT brushes.
  43.  
  44. 3- Load your picture file (or BRUSHES.NEO) then a dotted box will 
  45. appear.Size the box over the first little picture ( using the 
  46. bottom right corner of the dotted box ) with the left mouse 
  47. button.Position the dotted box using the left mouse button held 
  48. down with the mouse pointer in the centre of the box.NOTE THE 
  49. SIZE OF THE BRUSH! When your happy with the size and position of 
  50. the box then press your right mouse button.You will then have 
  51. your first brush.Repeat the above for more brushes.Try the six 
  52. lower brushes in the ANIM_BRU.IFF example on this disk to create 
  53. a pulsating laser cannon as used in my example.
  54.  
  55. 4- When you have cut enough brushes go to the GENERAL menu then 
  56. select BRUSHANIMATIONS then CREATE.Next goto GENERAL menu again 
  57. then select BRUSHANIMATIONS then EDIT then select BRUSHANIM1 or 
  58. whatever the name is.Another menu will come up then press on the 
  59. EDIT button then the ADD button then select brush1 from the 
  60. list,then press on the ADD button then select brush2 and so 
  61. on,then press the OK button.
  62.  
  63. 5- Press on the PREVIEW button to have a look at the 
  64. brushanimation that you have just created.If it is running too 
  65. fast then add a higher number next to SPEED to slow it down eg-1O
  66. or use a low number ( 1 )  to speed it up.When you are happy with it 
  67. press the OK button and that is all there is to it!You now need 
  68. to write a few lines of simple code to get the brushanim working.
  69.  
  70. To use a brushanim try this as an example to see how it works -
  71. Make a cube in an area then give it this condition-
  72.  
  73. IF SHOT?
  74. STARTBRUSHANIM (1,1O,15,4)
  75. ENDIF
  76.  
  77. Then shoot the cube in Test ( key F1 on your computer ) mode.
  78. This assumes that you are still using the same datafile as you 
  79. used to create your brushanim in.
  80.  
  81. The example provided for you on this disk uses the following 
  82. files-
  83.  
  84. ANIM_BRU.IFF    This is the brushes picture file.
  85. ANIM_BRU.TXT    This is what you are reading now
  86. ANIOBJ.TXT      This is the condition for the cube 
  87.                 condition.Simply create a cube in an area then 
  88.                 load in this object condition.
  89. ANI_INIT.TXT    This is the Initial condition for the example.
  90.                 Simply create an Initial condition,Edit it and 
  91.                 then load in this condition.
  92. ANBORDER.IFF    This is the border for the example.
  93. ANIM_BRU.3WD    This is the finished fully working example for 
  94.                 Atari/Amiga users.PC users can simply load the 
  95.                 kit 2 up,create a cube in the centre of the area,
  96.                 load the object condition for the cube,create 
  97.                 then edit an initial condition and then load
  98.                 the initial condition text provided.Then follow the
  99.                 brushanim tutorial above to load in the six 
  100.                 brushes. 
  101.  
  102. The example works by shooting at the cube but ideally you would 
  103. create a gun that would carry out the following condition once it 
  104. was taken (activated) -
  105.  
  106. IF ACTIVATED?
  107. THEN
  108.  ENABLEBRUSHANIM (1)
  109.  STARTBRUSHANIM (1,24,150,4)
  110.  SOUND(5)
  111.  INVIS(2)
  112. ENDIF
  113.  
  114. This assumes that the object chosen was object number 2 and that 
  115. the brushanim ( number 1 ) was previosly disabled using an Initial 
  116. start up condition.E.g Initial Condition 1 would read-
  117.  
  118. IF BRUSHANIMACTIVE? (1)
  119. THEN
  120.  DISABLEBRUSHANIM (1)
  121. ENDIF
  122.  
  123. The numbers in the STARTBRUSHANIM command brackets in this 
  124. example mean the following-
  125. Example    STARTBRUSHANIM (1,10,15,4) 
  126.  
  127. 1 is the brushanim number
  128. 1O is the x coordinate ( position on screen )
  129. 15 is the y coordinate ( position on screen )
  130. 4 tells it to bounce,5 would give a random effect,3 would repeat 
  131. it,1 would stop it and 2 will do it a single time.
  132.  
  133. Try using the following-
  134.  
  135. STARTBRUSHANIM       starts a brushanim
  136. STOPBRUSHANIM        stops a brushanim
  137. SETBRUSHANIM         used to alter brushanim parameters
  138. GETBRUSHANIM         used to get brushanim parameters
  139. DISABLEBRUSHANIM     used to disable a brushanim
  140. ENABLEBRUSHANIM      enables a brushanim
  141. BRUSHANIMACTIVE?     used to check if a brushanim is active
  142.  
  143. Look at the Addendum that came with kit 2 for more examples.
  144.  
  145. ................TONY
  146.  
  147.