Skip to content

Commit 63589fb

Browse files
author
GDevelop documentation CI
committed
Automatic update of the reference pages [skip ci]
1 parent 7fd1baa commit 63589fb

4 files changed

Lines changed: 76 additions & 3 deletions

File tree

docs/gdevelop5/extensions/.pages

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ nav:
2828
- Camera shake: camera-shake
2929
- Camera Zoom: camera-zoom
3030
- Copy camera settings: copy-camera-settings
31-
- Drag camera with the mouse (or touchscreen): drag-camera-with-pointer
3231
- Edge scroll camera: edge-scroll-camera
3332
- First person 3D camera: first-person-camera
3433
- Follow multiple 2D objects with the camera: follow-objects-with-camera
3534
- Parallax for Tiled Sprite: parallax
3635
- Room-based camera movement: room-based-camera-movement
36+
- Scrollable viewport: scrollable-viewport
3737
- Smooth Camera: smooth-camera
3838
- Third person camera: third-person-camera
3939
- Game mechanic:
@@ -174,6 +174,7 @@ nav:
174174
- Sound volume based on distance: sound-volume-based-on-distance
175175
- Camera:
176176
- 3D camera shake: camera-shake3d
177+
- Drag camera with the mouse (or touchscreen): drag-camera-with-pointer
177178
- Device:
178179
- GPS: geolocation
179180
- Voice Recognition API: voice-recognition

docs/gdevelop5/extensions/drag-camera-with-pointer/index.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
# Drag camera with the mouse (or touchscreen)
22

33
<img src="https://resources.gdevelop-app.com/assets/Icons/drag-variant.svg" class="extension-icon"></img>
4-
Pan/drag camera with mouse or touch. Configurable inertia and bounds.
4+
Pan/drag camera with mouse or touch.
55

66
**Authors and contributors** to this experimental extension: [ddabrahim](https://gd.games/ddabrahim), [VictrisGames](https://gd.games/VictrisGames).
77

8+
!!! warning
9+
This is an extension made by a community member and it only got through a
10+
light review by the GDevelop extension team. As such, we can't guarantee it
11+
meets all the quality standards of fully reviewed extensions.
12+
813
---
914

1015
Move a camera by dragging the mouse (or touchscreen).
1116

17+
This extension is deprecated. The [scrollable viewport extension](https://wiki.gdevelop.io/gdevelop5/extensions/scrollable-viewport) should be used instead.
18+
1219
How to use:
1320

1421
- Run this action on every frame that you want the camera to be movable by the mouse (or touchscreen)

docs/gdevelop5/extensions/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ Read more about this:
5959
|<img src="https://resources.gdevelop-app.com/assets/Icons/vector-difference-ab.svg" class="extension-icon"></img>|**Camera shake**|Shake layer cameras.|[Read more...](/gdevelop5/extensions/camera-shake)|
6060
|<img src="https://resources.gdevelop-app.com/assets/Icons/Line Hero Pack/Master/SVG/UI Essentials/UI Essentials_zoom_in_plus.svg" class="extension-icon"></img>|**Camera Zoom**|Zoom camera smoothly with optional anchor point.|[Read more...](/gdevelop5/extensions/camera-zoom)|
6161
|<img src="https://resources.gdevelop-app.com/assets/Icons/layers-triple-outline.svg" class="extension-icon"></img>|**Copy camera settings**|Copy camera position, zoom, and rotation from one layer to another.|[Read more...](/gdevelop5/extensions/copy-camera-settings)|
62-
|<img src="https://resources.gdevelop-app.com/assets/Icons/drag-variant.svg" class="extension-icon"></img>|**Drag camera with the mouse (or touchscreen)**|Pan/drag camera with mouse or touch. Configurable inertia and bounds.|[Read more...](/gdevelop5/extensions/drag-camera-with-pointer)|
6362
|<img src="https://resources.gdevelop-app.com/assets/Icons/camera-metering-matrix.svg" class="extension-icon"></img>|**Edge scroll camera**|Scroll camera when cursor is near screen edges.|[Read more...](/gdevelop5/extensions/edge-scroll-camera)|
6463
|<img src="https://asset-resources.gdevelop.io/public-resources/Icons/Line Hero Pack/Master/SVG/Security and Protection/e8248ffd504c314e6a9d9d560c3a0fdad3398a5f125ae6a4c0654d4e68c86376_Security and Protection_security_protection_eye_scan_lock.svg" class="extension-icon"></img>|**First person 3D camera**|Move the camera to look though objects eyes.|[Read more...](/gdevelop5/extensions/first-person-camera)|
6564
|<img src="https://resources.gdevelop-app.com/assets/Icons/camera-switch-outline.svg" class="extension-icon"></img>|**Follow multiple 2D objects with the camera**|Auto-zoom and position camera to keep all instances of an object visible.|[Read more...](/gdevelop5/extensions/follow-objects-with-camera)|
6665
|<img src="https://resources.gdevelop-app.com/assets/Icons/image-move.svg" class="extension-icon"></img>|**Parallax for Tiled Sprite**|Parallax scrolling for Tiled Sprite backgrounds.|[Read more...](/gdevelop5/extensions/parallax)|
6766
|<img src="https://resources.gdevelop-app.com/assets/Icons/Glyphster Pack/Master/SVG/Applications and Programming/Applications and Programming_app_apps_applications_tiles.svg" class="extension-icon"></img>|**Room-based camera movement**|Move/zoom camera to frame the room object containing the player.|[Read more...](https://victrisgames.itch.io/room-based-camera-movement) ([reference](/gdevelop5/extensions/room-based-camera-movement))|
67+
|<img src="https://resources.gdevelop-app.com/assets/Icons/drag-variant.svg" class="extension-icon"></img>|**Scrollable viewport**|Move a camera by dragging or with the scroll wheel.|[Read more...](/gdevelop5/extensions/scrollable-viewport)|
6868
|<img src="https://resources.gdevelop-app.com/assets/Icons/Line Hero Pack/Master/SVG/Computers and Hardware/Computers and Hardware_camcoder_gopro_go_pro_camera.svg" class="extension-icon"></img>|**Smooth Camera**|Smoothly scroll to follow an object.|[Read more...](/gdevelop5/tutorials/follow-player-with-camera/) ([reference](/gdevelop5/extensions/smooth-camera))|
6969
|<img src="https://asset-resources.gdevelop.io/public-resources/Icons/Line Hero Pack/Master/SVG/Virtual Reality/94e95d2c318e1f3dc7151a351024e13c574e1e44669c6696aa107d60230073f6_Virtual Reality_3d_vision_eye_vr.svg" class="extension-icon"></img>|**Third person camera**|Third-person camera orbiting an object at configurable distance, elevation, and rotation.|[Read more...](/gdevelop5/extensions/third-person-camera)|
7070

@@ -254,6 +254,7 @@ guarantee they meet all the quality standards of fully reviewed extensions.
254254
||Name|Description||
255255
|---|---|---|---|
256256
|<img src="https://resources.gdevelop-app.com/assets/Icons/vector-difference-ab.svg" class="extension-icon"></img>|**3D camera shake**|Shake 3D layer cameras.|[Read more...](/gdevelop5/extensions/camera-shake3d)|
257+
|<img src="https://resources.gdevelop-app.com/assets/Icons/drag-variant.svg" class="extension-icon"></img>|**Drag camera with the mouse (or touchscreen)**|Pan/drag camera with mouse or touch.|[Read more...](/gdevelop5/extensions/drag-camera-with-pointer)|
257258

258259
### Device
259260

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Scrollable viewport
2+
3+
<img src="https://resources.gdevelop-app.com/assets/Icons/drag-variant.svg" class="extension-icon"></img>
4+
Move a camera by dragging or with the scroll wheel.
5+
6+
**Authors and contributors** to this experimental extension: [D8H](https://gd.games/D8H), [ddabrahim](https://gd.games/ddabrahim), [VictrisGames](https://gd.games/VictrisGames).
7+
8+
---
9+
10+
Move a camera by dragging or with the scroll wheel.
11+
12+
It can be used for
13+
14+
- Making a scroll view ([open the project online](https://editor.gdevelop.io/?project=example://scrollbar))
15+
- Dragging the camera on a top-down game
16+
17+
!!! tip
18+
Learn [how to install new extensions](/gdevelop5/extensions/search) by following a step-by-step guide.
19+
20+
21+
22+
## Scrollable viewport
23+
24+
Move a camera by dragging or with the scroll wheel.
25+
26+
### Behavior properties
27+
28+
- **Direction** (Choice, one of: "Vertical", "Horizontal", "Both").
29+
- **InertiaDeceleration** (🔢 Number, Acceleration). Default value is `800`.
30+
- **Dragged layer** (🔤 String). The dragged layer must be different from this object layer.
31+
- **Wheel scrolling duration** (🔢 Number, Duration). Default value is `0.25`.
32+
- **Step size** (🔢 Number, Distance). Default value is `120`.
33+
34+
??? quote "See internal technical details"
35+
36+
37+
- **Direction** is stored as `Direction` (Choice). Default value is ``.
38+
- **InertiaDeceleration** is stored as `InertiaDeceleration` (Number). Unit is PixelAcceleration. Default value is `800`.
39+
- **Dragged layer** is stored as `Layer` (String). Default value is ``.
40+
- **Wheel scrolling duration** is stored as `WheelScrollingDuration` (Number). Unit is Second. Default value is `0.25`.
41+
- **Step size** is stored as `WheelStepSize` (Number). Unit is Pixel. Default value is `120`.
42+
43+
### Behavior conditions
44+
45+
**Camera is being dragged**
46+
Check if camera is being dragged from this object.
47+
48+
??? quote "See parameters & details"
49+
50+
- Parameter 0: 👾 Object
51+
- Parameter 1: 🧩 Behavior
52+
53+
> Technical note: parameter 2 is an internal parameter handled by GDevelop.
54+
55+
> Technical note: this condition internal type (in GDevelop JSON) is `ScrollableViewport::ScrollableViewport::IsDragged`.
56+
57+
58+
_No expressions for this behavior._
59+
60+
61+
62+
---
63+
64+
*This page is an auto-generated reference page about the **Scrollable viewport** extension for [GDevelop, the open-source, AI-powered, cross-platform game engine designed for everyone](https://gdevelop.io/).* Learn more about [all GDevelop extensions here](/gdevelop5/extensions).

0 commit comments

Comments
 (0)