Scroller for Sprites or Tiles

Get help using Construct 2

Post » Wed Jan 09, 2013 12:18 am

@wildmedia well, it wasn't useful solution, anyways i can wait for you, have good sleep
B
95
S
25
G
20
Posts: 3,052
Reputation: 22,613

Post » Wed Jan 09, 2013 12:26 am

@Wink i already edited that but it didn't help me because i changed text to sprites, when i drag scrollbar goes down, all icons goes down... i assume it's designed for Listbox, not just image list
B
95
S
25
G
20
Posts: 3,052
Reputation: 22,613

Post » Wed Jan 09, 2013 1:44 am

@Joannesalfa I think I got R0J0hound's example modified for you.

I was in a hurry so I didn't comment what I all changed but if you compare R0J0hound's, and mine side by side you should be able to see what I did. I had to add a couple new instance variables, And I left all of R0J0hound's original code there. I just disabled what I didn't need.

I also couldn't get his highlight effect to work. To get it working it has something to do with setting the sprite_inst to the sprite height. I commented were I was having problems with it in the code. You could probably just delete his highlighter, and make your own by setting the highlighter image visible on object clicked or something like that if you cant get his to work.

Anyway, I hope this helps:

Scroll SpritesWink2013-01-09 01:45:54
B
50
S
11
G
8
Posts: 479
Reputation: 9,911

Post » Wed Jan 09, 2013 3:24 am

[QUOTE=Wink] @Joannesalfa I think I got R0J0hound's example modified for you.

I was in a hurry so I didn't comment what I all changed but if you compare R0J0hound's, and mine side by side you should be able to see what I did. I had to add a couple new instance variables, And I left all of R0J0hound's original code there. I just disabled what I didn't need.

I also couldn't get his highlight effect to work. To get it working it has something to do with setting the sprite_inst to the sprite height. I commented were I was having problems with it in the code. You could probably just delete his highlighter, and make your own by setting the highlighter image visible on object clicked or something like that if you cant get his to work.

Anyway, I hope this helps:

Scroll Sprites[/QUOTE]

@Wink Nice! thanks for modifying, i think i should modify to get the positions like the icons in grid. Your help is useful after all. Thanks!

Joannesalfa2013-01-09 03:24:51
B
95
S
25
G
20
Posts: 3,052
Reputation: 22,613

Post » Fri Jan 25, 2013 8:08 am

I've spent like 9 hours figuring out to make a decent scroller, well no solution :/


EDIT: I've made a simple scroller, so there no dynamic scrollbar, but 2 buttons.

http://dl.dropbox.com/u/76227787/scroller_ivan.capxJoannesalfa2013-01-25 09:33:05
B
95
S
25
G
20
Posts: 3,052
Reputation: 22,613

Previous

Return to How do I....?

Who is online

Users browsing this forum: MrLOL64 and 20 guests