MakeCode Games!

A fan-made community library of MakeCode Arcade games. Visit MakeCode Arcade to make a game!

← Back to extensions

Raycasting 3D Render

Transforms your 2D tilemaps and sprites into a first-person 3D/2.5D raycasted world with jumping, heights, camera controls, and multi-directional animations.

Sprite move

Problem it solves

An enemy gets hit by an explosion and you want them knocked up into the air even if they are already mid-jump.

What this block does

Directly sets vertical velocity and acceleration along the Z-axis for a sprite, even if it is not resting on the floor.

The block

Block ID: rcRender_move

Sprite %spr=variables_get(mySprite) move, with speed $v=spriteSpeedPicker|| acceleration $a block

Parameters

NameTypeDefaultMeaning
spriteSpritemySpriteThe sprite to move vertically.
vnumber60Vertical speed in pixels per second.
anumber-250Vertical acceleration in pixels per second squared.

Returns

void — Nothing.

Example

let enemy = sprites.create(img`.`, SpriteKind.Enemy)
Render.move(enemy, 50, -200)

Add the extension

Add github:The-Code-Zone/Raycasting-pxt-extension to your project, or open: Import Raycasting-pxt-extension.