Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

moveShape()

Purpose

Apply movement to a shape drawn with drawShape()

Description

Applies movement on a pixel-per-frame basis to a shape's x and y screen position

Syntax

moveShape( shape, x, y )
moveShape( shape, axes )

Arguments

shape Handle which stores the shape to move

x Amount (in pixels) to move the shape on the horizontal axis

y Amount (in pixels) to move the shape on the vertical axis

axes Vector describing the amount (in pixels) to mvoe the shape on both axes

Example

shape = createCircle( gwidth() / 2, gheight() / 2, 200, 360 )

// move the circle using the left control stick values
loop
    clear( grey )
    j = controls( 0 )
    moveShape( shape, { j.lx, -j.ly } * 5 )
    drawShape( shape )
    update()
repeat

Associated Commands

copyShape(), createBox(), createCircle(), createCurve(), createLine(), createLineStrip(), createPoly(), createStar(), createTriangle(), deleteShape(), drawShape(), getShapeBounds(), getShapeLocation(), getShapeRotation(), getShapeScale(), getShapeTint(), getVertex(), getVertexColour(), getVertexLineColour(), getVertexLineThickness(), joinShapes(), numVerts(), rotateShape(), scaleShape(), setShapeColour(), setShapeLineStyle(), setShapeRotation(), setShapeScale(), setShapeScaleModeLocal(), setShapeTint(), setVertex(), setVertexColour(), setVertexLineStyle()

logo

©2019 FUZE Technologies Ltd. FUZE is a registered trademark of FUZE Technologies Ltd. All rights reserved.

Useful links

  • Fuze Main Site
  • Fuze Arena on Twitter
  • Fuze Arena on Youtube
  • Download Buyer

Contact Information

  • FUZE Technologies Ltd
    15 Clearfields Farm
    Wotton Underwood
    Aylesbury, Buckinghamshire
    ​England, HP18 0RS

  • +44 (0) 1844 239 432

  • contact@fuze.co.uk

© Copyright FUZE Technologies Ltd. All rights reserved.