Next and Previous buttons

I have a scene where Im setting up a basic slideshow. I have 5 groups that I need to hide and unhide using the next and previous buttons.

Not sure how to make this work. In Flash there is an actionscript built in that just jumps from frame to frame, but I dont see anything like that here.

@trenken311

Could you put up a screenshot or a video of what it is you’ve created and/or what you would like to achieve? There are a lot of ways this could be done, and I want to make sure we get the right solution for your situation! :slight_smile:

1 Like

So I realized the swap collection does what I need, but is there a way to customize the look and position of the controls? Just seems to be locked at the bottom of the screen and I need to be able to put it elsewhere.

This article might be just what you’re looking for:

1 Like

Oh perfect, thanks! So how do you actually move the controls to a different location? Im not seeing that anywhere.

1 Like

Oh! I somehow missed the repositioning of controls part of your question. :sweat_smile:

@Promultis or @Alex may have a different take on this, but I’m thinking you may just have to forget the player controls that are provided natively in the collection controls and create a separate group of “handmade” (if you will) controls that you can advance through your collection.

i.e. make two different buttons in Photoshop (or other graphics editor), one buttons for forward, one for backward. Import them into IF, put in a group and place that group where you want within the scene. You can then add triggers/actions to each button so that when the forward image is clicked, then it will advance the collection by one item.

At least, that’s what I would do. :blush:

1 Like

And that’s a proper way to do :wink:

1 Like

Just thought i would jump in on this, for example if you are using a scroll collection You could simply have one button move forward and move back.

For example if you create a scroll collection and have your Groups 1,2,3,4,5 next to each other you can simply add multiple triggers to the one “Next” Button for example

WHEN Button > Is pressed > IF condition 1 "Horizontal offset (px) - “Equals” - “0” THEN > Scroll by X offset the width of the group.

I hope this help? I hopefully should be able to share a working example.

Kind Regards

2 Likes

For such a simple use case, I’d stick with the Swap collection which looks more adapted to me.

As @megan said, just

  • hide the default collection controls (appearance properties)
  • create your own buttons that call the next / previous action on the collection
1 Like

I dont understand what youre trying to explain. When I click THEN, I have to select a slide. But I dont want that. I just want the button to scroll to the next one.

Isnt there some way like in flash actionscript to somehow tell it, “on press, scroll to next slide?”

Sort of related question but my objects within a scroll group no longer snap to each other. They used to snap edge to edge but it doesnt work anymore. Any idea why?

Sorry yet another question. It seems like the positioning anchors of objects is centered on the object. This is really unusual for any sort of design or development apps. Its usually placed at the top left corner, so that when positioning an object, I can tell the x and y to be 0,0, and it makes it very easy to position things.

With it being centered, its making it difficult for me to figure out exactly where things need to be on the stage/canvas. In my project, for me to center an image that is the exact size of my canvas, the position has to be 4800x, 1080y. This is crazy. It should be 0,0. Is there a way to move the pivot point to the top left of the object. If its locked to the center of the x and y, this is going to be a nightmare for me building complex projects.

Bringing this up because now that my objects wont snap to each others edges, I have to position them using x,y coordinates, but this suddenly has become a real pain for me with the positioning of objects is based on the center of them!

Send your experience and then ill have a go to see if i can get it work :slight_smile:

How would I send it? The project is a bunch of gigs.

Dropbox? Or do you have Google Drive?

Hi @trenken311,

For such questions, I’d recommend you to contact our support team instead of community (no offense guys :wink: )
The Intuiface support team will ask to share your XP with them which keeps your data private.

Seb

3 Likes

So I actually got this to work :). Like I said im very new to intuiface so I forgot that you can add multiple triggers to the same object as like separate actions. I was confused by that since that is a little different than how flash worked.

2 Likes

See the + icon in the middle of this image? This is a scroll collection. Looks like a pivot point to me but its in an odd position. It’s not centered. What is this?

This is the “origin point” of your scroll collection. It’s kind of weird to see it here, so I’ll just assume that you have moved things back and forth on the left / top of the original point (top left corner).

Resetting it is not the easiest to do, so since you don’t have a ton of items / triggers&actions there, I’d recommend you create a new collection, at the right size, then move your items from the old one to the new one. That’ll give you a clean collection / origin point.

2 Likes

So Ive discovered that there are limitations to the width that you can make a scroll collection. I just did a small test with 5 items, and the next button with louie’s scripting suggestion works fine. Scrolls through all of the items.

As soon as that scroll collection is 5 items wide on a massive media wall and ends up being about 22,000 pixels wide, it’s not able to scroll all the way to the end. It just stops working when you get to the 3rd item. Really odd. I have it set up the same exact way as my smaller test, only difference is its REALLY large, and wont work properly.