This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| pf:createparticle [2015/03/01 19:23] – Correct argument order stewbasic | pf:createparticle [2015/03/04 16:56] (current) – removed Karsten75 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ~~DISCUSSION~~ | ||
| - | <- [[pf: | ||
| - | ===== CreateParticle | ||
| - | |||
| - | ^Arguments^Result^Notation^ | ||
| - | |Pixel coordinates, | ||
| - | |||
| - | === Description === | ||
| - | |||
| - | Creates a particle with the given position and velocity. The angle is measured counterclockwise, | ||
| - | |||
| - | ^Type^Description^ | ||
| - | |0|The default round particle which is attracted to ships and energy sources.| | ||
| - | |1|A square particle which travels in a straight line and damages ships only.| | ||
| - | |||
| - | If the " | ||
| - | |||
| - | === How to use === | ||
| - | |||
| - | | Standard CRPL | //x y direction speed type enemy // **createparticle ** | | ||
| - | | Warp notation | **createparticle** (//x y direction speed type enemy//) | | ||
| - | |||
| - | === Examples === | ||
| - | Create an enemy particle moving up and capture its UID. | ||
| - | < | ||
| - | CreateParticle(CurrentPixelCoords 90 10 0 1) ->p | ||
| - | </ | ||
| - | |||
| - | === Raw Code === | ||
| - | < | ||
| - | case STATEMENT.CREATEPARTICLE: | ||
| - | i2 = GetIntFromStack(); | ||
| - | i1 = GetIntFromStack(); | ||
| - | f4 = GetFloatFromStack(); | ||
| - | f3 = GetFloatFromStack(); | ||
| - | f2 = GetFloatFromStack(); | ||
| - | f1 = GetFloatFromStack(); | ||
| - | </ | ||