CBEffects 3.0 is now live on GitHub!
Download it now: http://github.com/GymbylCoding/CBEffects
- Caleb
CBEffects 3.0 is now live on GitHub!
Download it now: http://github.com/GymbylCoding/CBEffects
Good job!Thank you Caleb!
Downloading…
Awesome! Thanks, Caleb!
Hi Caleb, I seem to be receiving this error message on the first launch of main.lua on the simulator:
File: …fects-master/CBEffects/cbe_core/vent_core/core.lua
Line: 74
Attempt to index local ‘p’ (a nil value)
local permanent\_fog permanent\_fog=CBE.VentGroup{ { preset="fluid", title="clouds", color={ {0.7}, {0.6}, {0.5} }, positionType="inRect", parentGroup = weatherGroup, rectLeft=0, rectTop=0, rectWidth=640, rectHeight=320, fadeInTime=500, lifeSpan=500, alpha=fogalpha, lifeStart=1000, build=function() local size=math.random(280, 312) return display.newImageRect("Textures/generic\_particle.png", size, size) end, propertyTable={ blendMode="normal" }, physics={ velocity=1.1, autoAngle=false, angles={180, 0} } } } permanent\_fog:start("clouds")
I use this code for making a permanent fog but everything slow down dramatically.Used to work just fine with the previous version of CBEffects and g1 graphics.
Any suggestions?
Thank you!
firdausm: Looks like your build function isn’t returning anything…?
PewPewNinja: Slowed down in what way? FPS or effect speed?
FPS and mac performance in general!
I’m receiving this error message from launching the main.lua in the CBEffects-master folder that I just downloaded from github link above. When I ran it with the simulator (build 2100) it won’t run because of that error.
Can you tell me if it happens if you try using the old version… may not work; just try.
Curiously enough, I’ve profiled all the functions that CBEffects does and they’re all taking no time at all (< 0.01 ms).
It’s not occurring with me… Are you doing anything other than just launching the main.lua?
Just launching the main.lua thats it. Do you have any clues on what might be causing the problem?
I have already tried the older version and i have the same problem.
I made a new test project just with the CBEffects code and i have the same problem.My macbook air slow down dramatically.
Btw i use corona version 2100 and i have the same problem as firdausm too!
Just a thought.I use another effect and it works great.The only difference i can spot is the particles size.In the effect that troubles me i use really large particles.
local size=math.random(280, 312)
When i make them smaller everything seems to work good but the effect looks bad (of course)
Nice work Caleb!
Great! Just in time for the GGJ :D Keep up the good work!
Goodmorning.
I just tried the same code/game on pc and it runs great.I used the same corona version (2100) and the pc is much weaker than the mac!
One more problem.
parentGroup = weatherGroup,
Doesnt seem to work in this version of CBEffects.I just tried the previous version and works fine.
EDIT:
I just noticed the changes in vent parameters.This might be the reason of the slow down but i am at work now and i cant check it.
It would appear that your speed issues are an issue of Corona, then; I’ve extensively profiled all CBEffects processes and none of them are taking more than what I mentioned above. I just fixed the parentGroup issue; re-download the library and it should work
Thanks for the encouragement, Gremlin Interactive and gareve25
Hi Caleb, the main.lua seems to be working after redownloading the files just now. In the old version I was able to view through the samples by selecting “Load Sample Browser”. Is there a way to do it in this version?
I fixed your original issue, but there is currently no sample browser implemented for this version.
I wanted to at least get the code public, and not have everyone wait another three to four weeks while I built a full-featured sample app. I did work on the SampleCache a bit more, so feel free to check into those (they’re more basic, though).
parentGroup is fixed and i have changed my code for the speed issues.I think its Corona issue too.
Thank you Caleb