BlocosIA Wiki Editor

Vehicles and Combat

Tanks and cars: aim with smooth turning, use image points (barrel tip, turret mount) and attach one part to another.

Mark the points in the paint editor ("Image points" tool, P key). E.g. on the chassis a "turret" point; on the barrel a "tip" point. On the turret use "attach my position to point turret of Chassis and turn along: no" and, in a "forever", "smoothly turn toward mouse pointer". Attaching is applied at drawing time, with no lag.

To use it: in the editor, click "Extensions" (bottom corner) and add "Vehicles and Combat".

Stack

smoothly turn toward [ ▾ ] up to ( ) degrees at a time

Does an action. Snap it below another block.

Stack

smoothly turn toward x: ( ) y: ( ) up to ( ) degrees at a time

Does an action. Snap it below another block.

Stack

smoothly turn to direction ( ) up to ( ) degrees at a time

Does an action. Snap it below another block.

Reporter

direction to [ ▾ ]

Gives a number or text. Put it inside a round slot.

Reporter

turn left to face [ ▾ ]

Gives a number or text. Put it inside a round slot.

Boolean

aiming at [ ▾ ] within ( ) degrees?

Answers true or false. Use it in "if", "repeat until" and "wait until".

Stack

drive: move ( ) steps and turn ( ) degrees

Does an action. Snap it below another block.

Reporter

[x] of my point [ ▾ ]

Gives a number or text. Put it inside a round slot.

Reporter

[x] of point [ ▾ ] of [ ▾ ]

Gives a number or text. Put it inside a round slot.

Stack

go to point [ ▾ ] of [ ▾ ]

Does an action. Snap it below another block.

Stack

create clone of [ ▾ ] at my point [ ▾ ] pointing my direction

Does an action. Snap it below another block.

Boolean

I have point [ ▾ ] ?

Answers true or false. Use it in "if", "repeat until" and "wait until".

Stack

attach my position to point [ ▾ ] of [ ▾ ] and turn along: [yes]

Does an action. Snap it below another block.

Stack

attach [ ▾ ] to point [ ▾ ] of [ ▾ ] and turn along: [yes]

Does an action. Snap it below another block.

Stack

detach [ ▾ ]

Does an action. Snap it below another block.

Boolean

am I attached to another sprite?

Answers true or false. Use it in "if", "repeat until" and "wait until".