There are some trick to make transformations on mid frame?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
alejandroalzate
Citizen
Posts: 67
Joined: Sat May 08, 2021 9:45 pm

There are some trick to make transformations on mid frame?

Post by alejandroalzate »

Thats pretty much it
like it get on x line or x scaline and trigger something to change the graphics on the fly.
idc if the fps drops

Code: Select all

target = boardIndex.getWhosPeekingThisLine()
target:setObey(true)
User avatar
dusoft
Party member
Posts: 492
Joined: Fri Nov 08, 2013 12:07 am
Location: Europe usually
Contact:

Re: There are some trick to make transformations on mid frame?

Post by dusoft »

User avatar
pgimeno
Party member
Posts: 3544
Joined: Sun Oct 18, 2015 2:58 pm

Re: There are some trick to make transformations on mid frame?

Post by pgimeno »

It's not possible to trigger any action in a given scanline, if that's what you're asking.
User avatar
zorg
Party member
Posts: 3436
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: There are some trick to make transformations on mid frame?

Post by zorg »

If you don't care about "if the fps drops", then you can simulate this yourself, with drawing stuff to a canvas, and then only drawing a specific area of it to the screen each frame; you will then artificially drop the fps to something stupid like 0.6 FPS in terms of what gets drawn (even if the actual FPS stays at vsync or whatever), but as pgimeno said, you can't truly do detection of the current scanline and stuff like that.
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 53 guests