Differences

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

Link to this comparison view

Both sides previous revision Previous revision
gdevelop:documentation:manual:function_reference [2016/01/01 12:41]
brylie Moving operators
gdevelop:documentation:manual:function_reference [2016/01/01 12:47] (current)
brylie Moving built in functions
Line 35: Line 35:
 ====== Other available functions ====== ====== Other available functions ======
 '​*'​ - Native platform only '​*'​ - Native platform only
- 
-===== Built in events ===== 
- 
-==== Variable ==== 
- ToJSON(var) 
- Object.VariableString(var) 
- GlobalVariableString(var) 
- VariableString(var) 
- GlobalVariable(var) 
- Variable(var) 
- Object.Variable(var) 
-==== Window ==== 
- WindowTitle() 
-==== Screen ==== 
- ColorDepth() 
- SceneWindowHeight() 
- SceneWindowWidth() 
- ScreenHeight() 
- ScreenWidth() 
-==== All objects ==== 
- Object.Angle() 
- Object1.Distance(Object2) 
- Object1.SqDistance(Object2) 
- Object.X() 
- Object.Y() 
- Object.ForceAngle() 
- Object.ForceLength() 
- Object.ForceX() 
- Object.ForceY() 
- Object.Height() 
- Object.Width() 
- Object.Variable(var) 
- Object.ZOrder() 
- Count(Object) 
-==== Sprite ==== 
- Object.Animation() 
- Object.Sprite() 
- Object.Direction() 
- Object.PointX(pointName) 
- Object.PointY(pointName) 
- Object.ScaleX() 
- Object.ScaleY() 
- 
-==== Conversion ==== 
- ToDeg(angleRad) 
- ToRad(angleGrad) 
- ToNumber("​text"​) 
- LargeNumberToString(numExpression) 
- ToString(num) 
-==== Mouse ==== 
- MouseWheelDelta() - returns 0, 1, -1 
- MouseX("",​0) - Default: Base layer, camera 0 
- MouseY("",​0) 
-==== Joystick ==== 
- GetJoystickAxis(0,​axis) - joystick, axis 
-==== Random ==== 
-        Random(MaxNumber) 
- 
-==== Time ==== 
- Time(keyWord) Keywords: hour, min, sec, mday, mon, year, wday, yday 
- TimeDelta() 
- TimeFromStart() 
- TimerElapsedTime("​timerName"​) 
-==== Math ==== 
- AngleDifference(angle1,​angle2) 
-==== Camera ==== 
- CameraHeight("​layer",​camNum) 
- CameraRotation("",​0) 
- CameraViewportBottom("",​0) 
- CameraViewportLeft("",​0) 
- CameraViewportRight("",​0) 
- CameraViewportTop("",​0) 
- CameraWidth("",​0) 
- CameraX("",​0) 
- CameraY("",​0) 
-==== Sound ==== 
- GlobalVolume() 
- SoundChannelPitch(0) 
- SoundChannelPlayingOffset(0) 
- SoundChannelVolume(0) 
-==== Musics ==== 
- MusicChannelPitch(0) 
- MusicChannelPlayingOffset(0) 
- MusicChannelVolume(0) 
- 
 ===== Extensions ===== ===== Extensions =====