Mr. E
Mr. E

Reputation: 75

Is it possible to make a glitch effect in corona sdk?

Is it possible to do an effect like in the provided picture, where the screen would glitch at certain time intervals? Also, would it be possible if you have many thing going on in the screen(many separate moving parts such as shown below )

local ball
local background
local goal
local scoreTxt

enter image description here

Upvotes: 0

Views: 164

Answers (1)

Evan Barnes
Evan Barnes

Reputation: 56

You could take a screen capture of the group, slice it up horizontally and then adjust the x positions slightly between each slice, but this would be a little CPU intensive.

To capture/save the screen:

https://docs.coronalabs.com/api/library/display/capture.html

To import the saved screenshot and slice it up:

https://docs.coronalabs.com/guide/media/imageSheets/index.html

As for the greenish/purple linear effects, you might have to manually pre-create them for each object, and show them before you take a screen capture, then hide them right away.

Upvotes: 1

Related Questions