Author Topic: Any one know the code of this grid sliding effect?  (Read 336 times)

kent79

  • Sr. Member
  • ****
  • Posts: 324
    • View Profile
Any one know the code of this grid sliding effect?
« on: April 21, 2017, 06:29:00 AM »
Please share it if you knows. Thank you :)
https://www.youtube.com/watch?v=cEDzcu_y96I

keilmillerjr

  • Sr. Member
  • ****
  • Posts: 263
    • View Profile
Re: Any one know the code of this grid sliding effect?
« Reply #1 on: April 21, 2017, 02:57:49 PM »
Seems similar to the default grid layout. Check that out. I created a module for my mvscomplete layout. It only does side scrolling, but you can look at that code on github as well. It's possible it could be adapted to a grid style with more math involved. It took me a while to wrap my head around what I got thus far. But it's simple to understand because there's no animations and such.

kent79

  • Sr. Member
  • ****
  • Posts: 324
    • View Profile
Re: Any one know the code of this grid sliding effect?
« Reply #2 on: April 22, 2017, 01:27:12 AM »
The default grid theme does not smoothly  :-[

bjose2345

  • Full Member
  • ***
  • Posts: 84
    • View Profile
Re: Any one know the code of this grid sliding effect?
« Reply #3 on: April 22, 2017, 02:57:38 AM »
The default grid theme does not smoothly  :-[

actually it does, but like keilmillerjr said, need some maths and i will add that maths need to go in the on_progress() method in the grid theme, plus you need to modify the conveyor.nut to adjust the movement or momentum to only draw 1 row each time you hit the upper or down borders (when you move your selection up or down) and for that each time you move you need some kind of counter that let you know where you're standing.
« Last Edit: April 22, 2017, 03:01:07 AM by bjose2345 »

popoklo

  • Jr. Member
  • **
  • Posts: 17
    • View Profile
Re: Any one know the code of this grid sliding effect?
« Reply #4 on: April 23, 2017, 04:55:59 AM »
hi!

i also try to do this Scrolling effect AND i've done the Code for a Grid which scrolls ONLY when borders of Grid are hit (down or up). Left and reight borders will scroll through Favorites. if a border is hit the games will scroll not only 1 line, but a whole page (in my grid 4x3=12 games). to not confuse by Scrolling 12 games i also Need to add a smootch Animation.
 heres my working theme without Animation and the link to my thread:



http://forum.attractmode.org/index.php?topic=1611.0

the cool thing is also that a video is playing with bigger size of the actual game. in my thread u can download my .nut file and try.

perhaps we can do such grid togather. because a scrolling grid without hitting a border is not very handy i think.


kent79

  • Sr. Member
  • ****
  • Posts: 324
    • View Profile
Re: Any one know the code of this grid sliding effect?
« Reply #5 on: April 23, 2017, 05:27:30 AM »
hi!

i also try to do this Scrolling effect AND i've done the Code for a Grid which scrolls ONLY when borders of Grid are hit (down or up). Left and reight borders will scroll through Favorites. if a border is hit the games will scroll not only 1 line, but a whole page (in my grid 4x3=12 games). to not confuse by Scrolling 12 games i also Need to add a smootch Animation.
 heres my working theme without Animation and the link to my thread:



http://forum.attractmode.org/index.php?topic=1611.0

the cool thing is also that a video is playing with bigger size of the actual game. in my thread u can download my .nut file and try.

perhaps we can do such grid togather. because a scrolling grid without hitting a border is not very handy i think.

First. Thank you for your coding. Could you tell me how to modify the code to fix as below issue? Thanks.

http://forum.attractmode.org/index.php?topic=1637.0

popoklo

  • Jr. Member
  • **
  • Posts: 17
    • View Profile
Re: Any one know the code of this grid sliding effect?
« Reply #6 on: April 24, 2017, 01:32:50 AM »
sorry i don't use this grid.nut. perhaps i will find time to look into it.

greets!

kent79

  • Sr. Member
  • ****
  • Posts: 324
    • View Profile
Re: Any one know the code of this grid sliding effect?
« Reply #7 on: April 24, 2017, 06:40:33 AM »
sorry i don't use this grid.nut. perhaps i will find time to look into it.

greets!

The issue was just fixed by myself. Thanks  :)

popoklo

  • Jr. Member
  • **
  • Posts: 17
    • View Profile
Re: Any one know the code of this grid sliding effect?
« Reply #8 on: April 26, 2017, 08:01:01 AM »
coool. i also have a solution.
only thing is that my animation scrolling up and down is a bit sloppy.

anyone can look in my messy code:
http://forum.attractmode.org/index.php?topic=1644.0

my solution: don't wait for animation and THEN update art. i now update art and set my grid some pixel down and THEN animate it the same pixel back.

kent79

  • Sr. Member
  • ****
  • Posts: 324
    • View Profile
Re: Any one know the code of this grid sliding effect?
« Reply #9 on: April 26, 2017, 09:47:31 AM »
coool. i also have a solution.
only thing is that my animation scrolling up and down is a bit sloppy.

anyone can look in my messy code:
http://forum.attractmode.org/index.php?topic=1644.0

my solution: don't wait for animation and THEN update art. i now update art and set my grid some pixel down and THEN animate it the same pixel back.

I have tested your theme. It is so great for sliding effect. But it is still some issue on "next page moving".

Well, I have find a "tricky" way to fix it and then let it smoothly. I will open "secret" while my theme is completed.

So, please wait  ;D

kent79

  • Sr. Member
  • ****
  • Posts: 324
    • View Profile
Re: Any one know the code of this grid sliding effect?
« Reply #10 on: April 27, 2017, 06:29:15 AM »
Preview video was released. You may watch the effect  :)
http://forum.attractmode.org/index.php?topic=1615.0