mOOnpunk's Recent Forum Activity

  • I've added a toggle button.

    Use an object for the button track, and another for the slide button, complete with animation for on/off and hover states.

    -> eui: Add Toggle "slider1" using track, thumb, and menu_text (Text: '"slider test of the text test"' Right of Toggle Gap: 50px, On: False, W/H: 150x30) (Track: "default"/"hover") (Thumb: "default"/"hover"/"pressed"/"hover") (Dur: 0.2s) (Gap: 50, L: 50, R: 50)

    I've also added a progress bar.

    It uses an object for the track, another for the bar, and another for a optional overlay. It then tweens to the target value.

    -> eui: Add Progress Bar "progress1" '"Progress bar"' (Val: 20->50"%", Min/Max: 0/100, Dec: 0) (Pos: Center Overlay, W: 60, Text Gap: 20, H: 50) (Dur: 1.0s) using Track:track, Bar:progress_TB, Overlay:track2 (Use: True), Text:menu_text (Gap: 50, L: 50, R: 60)
  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Added checkboxs.

    You have optional left or right sided text, or none at all.

    -> eui: Add Checkbox "cbox1" using menu_checkbox and menu_text (Group: '""', Text: '"check box"' Left of Box, Checked: False) (Anims: "default"/"default"/"pressed"/"pressed") (Gap: 50, L: 50, R: 50)

    You can then turn them into radio buttons (where you can only check one option in a group), by simply adding them to a group name.

    	-> eui: Add Checkbox "cbox1" using menu_checkbox and menu_text (Group: '"test"', Text: '"radio one."' Left of Box, Checked: False) (Anims: "default"/"default"/"pressed"/"pressed") (Gap: 50, L: 50, R: 50)
    -> eui: Add Checkbox "cbox2" using menu_checkbox and menu_text (Group: '"test"', Text: '"radio two."' Left of Box, Checked: False) (Anims: "default"/"default"/"pressed"/"pressed") (Gap: 30, L: 50, R: 50)
    -> eui: Add Checkbox "cbox3" using menu_checkbox and menu_text (Group: '"test"', Text: '"radio three."' Left of Box, Checked: False) (Anims: "default"/"default"/"pressed"/"pressed") (Gap: 30, L: 50, R: 50)
    

    I also added panels. Panels work similar to the "Set next element background", except rather than putting the background over a single item or row, they wrap multiple elements. Simply add a begin panel action and an end panel action.

    -> eui: Begin panel using track (Padding: T:0 B:40 L:30 R:50, Gap Above: 50)
    -> eui: Add Checkbox "cbox1" using menu_checkbox and menu_text (Group: '"test"', Text: '"radio one."' Left of Box, Checked: False) (Anims: "default"/"default"/"pressed"/"pressed") (Gap: 50, L: 50, R: 50)
    -> eui: Add Checkbox "cbox2" using menu_checkbox and menu_text (Group: '"test"', Text: '"radio two."' Left of Box, Checked: False) (Anims: "default"/"default"/"pressed"/"pressed") (Gap: 30, L: 50, R: 50)
    -> eui: Add Checkbox "cbox3" using menu_checkbox and menu_text (Group: '"test"', Text: '"radio three."' Left of Box, Checked: False) (Anims: "default"/"default"/"pressed"/"pressed") (Gap: 30, L: 50, R: 50)
    -> eui: End panel (Gap Below: 0)

    Does anyone know of a good free ui graphics pack i can use to test the plugin?

  • I'm working on a new type of ui system.

    In the past i've experimented with polygon based plugins, and css based plugins, each have their pros and cons.

    Polygons are great for flat graphics, but text must be rendered as a texture causing large memory size. Css needs its own layer type and is finicky. Both are a pain when it comes to rending image graphics. Both allow for custom clipping.

    When i made the EasyMask plugin a few months ago i thought i could expand on it and make a ui system that uses Construct's own objects like sprites, 9 patch and text objects.

    There are already plugins most noticeably proUI that do this, however it requires lots of individual behaviours and a controller plugin, and you still have to link all the objects and set them up in the editor.

    My new plugin uses just one plugin, and the ui is created with events. It's super simple to use.

    Create the menu window.

    -> eui: Create menu at (200, 10) width 500 using menu_back
    
    -> eui: Add title "THIS IS A TEST TITLE" (Gap: 20, Underline: True) using menu_title_text

    Here it is using a 9 patch instance for the menu image. All clipping is set up automatically.

    The other action simply sets some title text.

    The menu is constructed row by row as you add new actions.

    Add some text.

    -> eui: Add text "This is a test of some text to go in our menu." (Gap: 50, Left: 30, Right: 50) using menu_text

    Again selecting a text object.

    Since the menu is constructed action by action, what happens if you want to add objects side by side?

    Simply make a dedicated row.

    -> eui: Begin horizontal row with columns: "1,1"
    -> eui: Add text "Text for first in row." & newline & "Some more text goes here." (Gap: 50, Left: 60, Right: 40) using menu_text
    -> eui: Add text "text for second in row" (Gap: 50, Left: 20, Right: 30) using menu_text
    -> eui: End horizontal row

    The begin row action breaks the width of the menu up into areas based on percent, or in this case ratios. "1,1" making 2 areas, each 50% of the menu width. Here we add text which are now arranged side by side. The end row action means the next object will be arranged below the row again.

    Objects or entire rows can be given a background of their own with the Set next element background action.

    -> eui: Set next element background to menu_back (Padding - T:40, B:40, L:40, R:50)

    The plugin supports labels that make it easy to display values including currency formatting.

    -> eui: Add label "Cost ""=" (Spaces: 20) "£"50000.23"." (Currency: True) (Gap: 50, L: 30, R: 20) using menu_text

    You can make a variety of buttons too. Here the checkbox style button uses a sprite instance. Each button state is an animation.

    -> eui: Add side-button "menuB" '"A test of a checkbox style button."' using menu_checkbox/menu_text (Anims: "default"/"hover"/"pressed") (Gap: 50, L: 30, R: 50)

    And i have also added sliders with a number of options. Again made up of 9 patch and sprite for the slider thumb.

    -> eui: Add slider "slider1" '"slider"' (Val: 0, Min/Max: 0/100, Step: 0, Decimals: 0, Show: True '"%"' Width: 100) using track/thumb/menu_text (Anims: "default"/"hover"/"pressed") (Gap: 50, L: 50, R: 100)

    Regular buttons are also supported. Here row is used again to easily align them side by side.

    -> eui: Begin horizontal row with columns: "1,1"
    -> eui: Add regular button "btn1" labeled "Open" (Anims: "default"/"hover"/"pressed") (Gap: 30, L: 50, R: 30) using regButton and menu_title_text
    -> eui: Add regular button "btn2" labeled "Close" (Anims: "default"/"hover"/"pressed") (Gap: 30, L: 50, R: 30) using regButton and menu_title_text
    -> eui: End horizontal row

    Finally you can get menu clicks with a simple condition.

    + eui: On menu transition to "menuB"

    Still lots to add.

  • Why do i have to suffer the inconvenience of this annoying Cloudflare check, which takes ages and triggers even on going back, and frequently being logged out, only to come on the forums and still see spam?

  • I'd settle for a physics implementation then.

    You know justifun made a cool box3d behaviour?

    construct.net/en/forum/construct-3/your-construct-creations-9/box3d-physics-engine-ported-188647

  • You could use the breadcrumb method.

    When A moves it drops an invisible object every x distance from the last, these act as way points.

    When B sees a waypoint it moves to it, then it moves to the next waypoint closet waypoint with a higher value, unless it has direct line of sight to A.

    Waypoints disappear after x seconds so its possible to get away.

  • This is an extensive and feature packed plugin that allows you to easily make narrative story games like Reigns, card battle games like Slay the Spire, or text adventure or choose you adventure games.

    Check out the 3 example files, though not extensive, demonstrate the basics.

    construct.net/en/make-games/addons/1660/dynamic-narrative

    Tagged:

  • Wow, amazing work. Thanks.

  • The polygon object supports shapes with dashed borders.

  • New Update.

    Shapes now support dashed lines.

  • You should put the foreach condition at the bottom of the event block. At the moment construct will pick all blocks then evaluate them, rather than only looping over blocks whos conditions return true.

    You way will still work correctly, but if you have lots of blocks it wont be as efficient.

  • Thanks.

    Internally, the plugin flattens all shapes into an array of paths (Segments).

    Segment 0: The main outer polygon boundary.

    Segment 1: The first hole (or first fractured shard).

    Segment 2: The second hole (or second fractured shard).

    Polygon.PointWorldX("0_5") gets the 6th point of the main outer boundary.

    Polygon.PointWorldX("1_0") gets the 1st point of the first hole/fragment.

    Polygon.PointWorldX("2_4") gets the 5th point of the second hole/fragment.

    Using a loop,

    Polygon.PointWorldX( str(SegmentLoopIndex) & "_" & str(PointLoopIndex) )

    If you want to spawn objects along the paths of the holes, you can nest two loops,

    + (Event Trigger)

    + System: Repeat Polygon.PathCount times (Loops through the main shape and all holes)

    + System: Local Number 'seg' = LoopIndex

    + System: Repeat Polygon.SegmentPointCount(seg) times (Loops through the points of this specific hole)

    + System: Local Number 'pt' = LoopIndex

    -> System: Create Object Dot at X: Polygon.PointWorldX(str(seg) & "_" & str(pt)), Y: Polygon.PointWorldY(str(seg) & "_" & str(pt))

    If a polygon was created based on the image points of a sprite, it will adopt those image point names.

    If you create a polygon and name the point "bob", you can access that point by that specific name.

    Points can be retrieved both by their unique name or the default "SegmentIndex_PointIndex".

mOOnpunk's avatar

mOOnpunk

Early Adopter

Member since 29 Mar, 2017

Twitter
mOOnpunk has 8 followers

Trophy Case

  • 9-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

19/44
How to earn trophies