User Tools

Site Tools


crpl:crpltutorial:interactive:randomemitter

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
crpl:crpltutorial:interactive:randomemitter [2013/10/07 19:58] FreeForTakingcrpl:crpltutorial:interactive:randomemitter [2023/10/18 16:00] (current) – adding notepad disclaimer Bob
Line 1: Line 1:
-~~DISCUSSION~~ 
 <-[[cw3:creeper_world_3|CW3 Home]] <-[[crpl:start|CRPL Home]] <-[[crpl:crpltutorial:interactive|Interacive tutorials]]\\ <-[[cw3:creeper_world_3|CW3 Home]] <-[[crpl:start|CRPL Home]] <-[[crpl:crpltutorial:interactive|Interacive tutorials]]\\
  
 ====== Creating a flying emitter ====== ====== Creating a flying emitter ======
  
-In this tutorial I'll cover how to make a flying emitter that flies to a randomly chosen spot, deploys a load of creeper and then repeats the procedure until you en the map.+In this tutorial I'll cover how to make a flying emitter that flies to a randomly chosen spot, deploys a load of creeper and then repeats the procedure until you end the map.
  
 ===== Prerequisites ===== ===== Prerequisites =====
  
   * Access to Creeper World 3 mapmaker.   * Access to Creeper World 3 mapmaker.
-  * http://notepad-plus-plus.org/ or other similar editor installed.+  * http://notepad-plus-plus.org/ or other similar editor installed.  
 +<note>Make sure you download only from the official Notepad++ website to avoid malware. https://notepad-plus-plus.org/</note>
  
 ===== Creating the script file ===== ===== Creating the script file =====
Line 15: Line 15:
 {{:crpl:crpltutorial:interactive:main_screen.png?400|}} {{:crpl:crpltutorial:interactive:main_screen.png?400|}}
  
-First you access the custom map section from the front screen int the projects sector.+First you must access the custom map section from the front screen int the projects sector.
  
 {{:crpl:crpltutorial:interactive:create_project.png?400|}} {{:crpl:crpltutorial:interactive:create_project.png?400|}}
Line 24: Line 24:
 {{:crpl:crpltutorial:interactive:ui_select_edit_map.png?400|}} {{:crpl:crpltutorial:interactive:ui_select_edit_map.png?400|}}
  
-Press on the edit map button to access all the map editing functions.+Press the edit map button to access all the map editing functions.
  
 {{:crpl:crpltutorial:interactive:createscript.png?600|}} {{:crpl:crpltutorial:interactive:createscript.png?600|}}
  
-  - Press the unit tab in the mapmaker UI.+  - First select the unit tab in the Map Editor interface.
   - Then press the scripts button, it'll bring up the scripts UI.   - Then press the scripts button, it'll bring up the scripts UI.
   - In the Scripts UI, first type the name of the script, my given name is MovingEmitter.   - In the Scripts UI, first type the name of the script, my given name is MovingEmitter.
   - Press the create button to create the script.   - Press the create button to create the script.
-  - The script will now show up in the Scripts menu, press the edit button next to the script to start editing. It'also here you'll need to have some kind of text editor installed, please refer to [[crpl:start|this]] for more information.+  - The script will now show up in the Scripts menu, press the edit button next to the script to start editing. It's here you'll need to have some kind of text editor installed, please refer to [[crpl:start|this]] for more information.
  
 ===== Coding the script ===== ===== Coding the script =====
  
-Now when everything is set up, it's time to start scripting. At this point hope you have went through the [[crpl:start|start page]] of the CRPL page, if not, do it now! It explains the basics of the language so you understands the basics, but don't worry if you doesn't get everything there, I'll cover as much as possible here.+Now when everything is set up, it's time to start scripting. At this point hope you have went through the [[crpl:start|start page]] of the CRPL page, if not, do it now! It explains the basics of the language so you understands the fundamentals, but don't worry if you doesn't get everything there, I'll cover as much as possible here.
  
 So right now, if you did everything right, and have a text editor set up, then you should have a mostly empty page with just some gibberish at the top, you can remove that part if you want or keep it, it doesn't really make a difference. So right now, if you did everything right, and have a text editor set up, then you should have a mostly empty page with just some gibberish at the top, you can remove that part if you want or keep it, it doesn't really make a difference.
Line 42: Line 42:
 But where to start? But where to start?
  
-can start with showing off the first two rows of the code:+will start with showing off the first two rows of the code:
  
 <code> <code>
Line 151: Line 151:
  
 This was all for me for this time, hope you enjoyed and learned something! :) This was all for me for this time, hope you enjoyed and learned something! :)
 +
 +===== Extra =====
 +
 +Only read this if you want some extra information.
 +
 +If you declare a variable as floating point, so:
 +<code>$Speed:3.0</code>
 +Instead of:
 +<code>$Speed:3</code>
 +You can use floating point values in the game when choosing the variables! (#5 of the last image above)
crpl/crpltutorial/interactive/randomemitter.1381190286.txt.gz · Last modified: 2014/10/01 15:02 (external edit)