The Official Blog of Patcoola

Im just a dude watching over my parents,
and trying to make cartoons and video games from home.

R&D: Scroller Plug-in for Construct 2

, By Patcoola

I have created a plug-in for the game creation program Construct 2, this plug-in replaces the included feature “Scroll To”. Scroller provides a wide range of features and options for creating side scrolling games.

Scroller makes side scrolling easier and better than before with more power, features and options for creating your side scrolling game.

Advertisement

Donate Now!

After a hard day, I like to relax with a cold jar of pickle juice and a hardy fart. If you like my blog, please consider donating.


Properties

Initial State

Enable or Disable the plug-in.

Scroll Mode

Options: All, Horizontal, Vertical.
Set the scrolling type to limit by.

Edge Mode

Enable or Disable snap and stop scrolling by display bounds.

Edit Positions

Enable or Disable, allows manual scroll position to be set.

X

Set the X position of the scroll.

Y

Set the Y position of the scroll.

Edit Dimensions

Enable or Disable, allows to manually set the scroll width and or height.

Width

Set the width of the scroll area.

Height

Set the height of the scroll area.

Margins

Set margins for the scroll area. Uses CSS rules. (Pixels only)

Dead Zone

Set the area from the center of the display to ignore scrolling a pinned object.
Uses CSS rules. (Pixels only)

Actions

Magnet

Pin to Object

Set the object for the scroll to follow.

Unpin

Unset the object to scroll to.

 

Properties

Set State

Set the plug-in to enabled or disabled.

Set Scroll Mode

Set scroll mode to All, Horizontal, Vertical for the scrolling to be limited by.

Set Edge Mode

Set edge mode to enabled or disabled. Limited scrolling to the display bounds.

 

Positions

Set State

Set change position to enabled or disabled.
Allows manual change of the scroll position.

Set Positions

Set both the X and Y position of the scroll.

Set X

Set the X position of the scroll.

Set Y

Set the Y position of the scroll.

 

Dimensions

Set State

Set width and height option to enabled or disabled.

Set Dimensions

Set the width and height of scroll area.

Set Width

Set the width of the scroll area.

Set Height

Set the height of the scroll area.

 

Margins

Set Margins

Set margins for the scroll area. Uses CSS rules. (Pixels only)

Set Top

Set the top margin for the scroll area.

Set Bottom

Set the bottom margin for the scroll area.

Set Left

Set the left margin for the scroll area.

Set Right

Set the right margin for the scroll area.

 

Dead Zone

Set Dead Zone

Set the area from the center of the display to ignore the pinned object.
Uses CSS rules. (Pixels only)

Set Top

Set the top area from the center of the display to ignore the pinned object.

Set Bottom

Set the bottom area from the center of the display to ignore the pinned object.

Set Left

Set the left area from the center of the display to ignore the pinned object.

Set Right

Set the right area from the center of the display to ignore the pinned object.

Expressions

Properties

Get State

Get the state of the plug-in. Returns 1 for enabled, 0 for disabled.

Get Scroll Mode

Returns 0 for All, 1 for Horizontal, 2 for Vertical.

Get Edge Mode

Returns 1 for enabled, 0 for disabled.

 

Position

Get Position State

Returns 1 for enabled, 0 for disabled.

Get Position X

Returns the computed X scroll position.

Get Position Y

Returns the computed Y scroll position.

 

Dimensions

Get Dimension State

Returns 1 for enabled, 0 for disabled.

Get Dimension Width

Returns the set width if dimensions is enabled or the layout width.

Get Dimension Height

Returns the set height if dimensions is enabled or the layout height.

 

Run Time

Get Canvas Width

Returns the width of the fixed display area.

Get Canvas Height

Returns the height of the fixed display area.

Get Layout Width

Returns the layout width.

Get Layout Height

Returns the layout height.

 

Margins

Get Margin Top

Returns the value of the top margin.

Get Margin Bottom

Returns the value of the bottom margin.

Get Margin Left

Returns the value of the left margin.

Get Margin Right

Returns the value of the right margin.

 

Dead Zone

Get DeadZone Top

Return the value of the top dead zone.

Get DeadZone Bottom

Returns the value of the bottom dead zone.

Get DeadZone Left

Returns the value of the left dead zone.

Get DeadZone Right

Returns the value of the right dead zone.

 

Computed

Get X Top Left

Returns the computed scroll X position from the top left corner.

Get Y Top Left

Returns the computed scroll Y position from the top left corner.

Get Width

Returns the computed scroll width.

Get Height

Returns the computed scroll height.

Get X Progress

Returns the percentage of the X scroll position.

Get Y Progress

Returns the percentage of the Y scroll position.

 

Advertisement

Donate Now!

After a hard day, I like to relax with a cold jar of pickle juice and a hardy fart. If you like my blog, please consider donating.


 

Post Meta

Share Post

 

Comments: 2, Write Comment

  1. ChristDuNord says:

    Hello.
    Your plugins look very interesting. Where can I download them?
    Thank you.

    • Patcoola says:

      It’s not finished (no save support, no scale support, no debug support), and if it were I would put it up for sale on the Construct website for 25CAD.

 

Comments Pages: 1 of 1

 


Leave a Comment


All comments are reviewed before publishing. Comments must be related to the page topic, must not be spam, and must comply with the criminal code of Canada.