Author Topic: Conveyor on a surface?  (Read 3467 times)

jedione

  • Hero Member
  • *****
  • Posts: 1135
  • punktoe
    • View Profile
Conveyor on a surface?
« on: February 06, 2017, 09:35:32 AM »
any one have the Conveyor set on a "surface" so it could be moved around the screen with ease...
thanks
help a friend....

liquid8d

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 442
    • View Profile
Re: Conveyor on a surface?
« Reply #1 on: February 09, 2017, 08:23:01 PM »
You'd need to extend the Slot class at least as that's where it creates the actual objects, maybe also the Conveyor class too - but maybe not.. not sure :P Take a look at the sample SimpleArtStrip and SimpleArtStripSlot classes in the conveyor module.. if you are having trouble getting it to work, let me know.. I'm not sure if you can maybe just pass the surface as the parent and modify the add_artwork to parent.add_artwork?

Code: [Select]
class SimpleArtStripSlot extends ConveyorSlot
{
m_p=null;
constructor( parent, artname )
{
m_p=parent;
base.constructor( ::fe.add_artwork( artname ) );
}

function on_progress( progress, var )
{
m_obj.width = m_p.m_width;
m_obj.height = m_p.m_height;
m_obj.x = m_p.m_x + progress * m_p.m_x_span;
m_obj.y = m_p.m_y + progress * m_p.m_y_span;
}
};

popoklo

  • Full Member
  • ***
  • Posts: 50
    • View Profile
Re: Conveyor on a surface?
« Reply #2 on: November 11, 2017, 01:08:15 PM »
OIOI!
is there really no one who can do a nice Surface to the conveyor that we can make super smooth Animation with the supernice Animation module?
i try hours to think into the normal grid theme but cant get a Surface with Animation for Scrolling.
the normal Transition anim with stopping everything is so useless. sorry for that.
my custommade theme will get fucked with performance, but has a grid with nice surface anim scroll. but also useless if the performance sux.
we all should work on the normal grid theme togather to get the animation system working!

i try further. ot has someone even a solution?

greeeets

popoklo

  • Full Member
  • ***
  • Posts: 50
    • View Profile
Re: Conveyor on a surface?
« Reply #3 on: November 11, 2017, 03:45:20 PM »
good News! Ive done it!
the gridtheme is modified with a Surface and so nice Animation.

will post it after some nice sleep :)


jedione

  • Hero Member
  • *****
  • Posts: 1135
  • punktoe
    • View Profile
Re: Conveyor on a surface?
« Reply #4 on: November 11, 2017, 06:21:34 PM »
look forward to messing around with it......time to wake up ;D
help a friend....

popoklo

  • Full Member
  • ***
  • Posts: 50
    • View Profile
Re: Conveyor on a surface?
« Reply #5 on: November 12, 2017, 03:29:49 AM »
OI!

with some comments i give the surface addition as attachment.
try it out.

i seem to have a BIG problem at last:
after adding the animations for the surface i get after many scrolls up down a performance issue!
when i deactivate the animations, the performance keeps great!!!

PLZ HELP WITH PERFORMANCE! and animations.
do the animations stack if i keep adding them after up down signal? could this be the problem?
is there a way to delete an animation, before adding a new one?


FOUND THE PROBLEM AND No SOLUTION!!!!!:
I use Tween.Expo. The animation seems to calc wrong at end value. it slitely will not get to the end value of an animation and so after like 500 animations (Hold button for a minute or so) the animation will start at a wrong value!!!! so it looks like choppy animation because of wrong start values.
Can someone look into animation calcs? i now use Tween.Cubic! Which need a bit longer till getting wrong values :(
Tween.Linear will need very long till wrong values appear.

greeets!
« Last Edit: November 12, 2017, 05:07:33 AM by popoklo »