jayderyu's Recent Forum Activity

  • Well I can't speak for java script on mobile devices that are accelerated or not. But I know in Unity a curve evaluation is pretty cheap. Also if it's really a problem just clock evaluate call on an every 0.033 tick. That will lighten the load if raw js is being a problem.

    On PC's performance isn't a problem.

  • Other users have reported a temporary spike (doubling) in memory use during layout changes with Ejecta. That spike can cause crashes if the device doesn't have enough memory to handle it.

    Sounds like this could be the culprit for Maor's project. Does Ashley know about this?

  • FunctionséMethods in other languages are defined objects simlar to int/string/float etc.

    So instead of Adding the object Function.

    You would rightclick or add a new variable. But instead it would be adding a "group" with defined paramaters. normal programming languges don't have a Function plugin. It's a core element to programming.

    So when you need to acess the Function it would be part of the system speficication. Similar to how variables are in the system root when you need to spell them.

  • The great thing about PhoneGap and the Apache group that has made Cordova. Is that talented programmers can build interfaces from native to the JS level. While PhoneGap probably doesn't have a built in solution. this doesn't stop us from making or better yet finding solutions.

    https://github.com/triceam/LowLatencyAudio

    http://www.tricedesigns.com/2012/01/25/ ... -phonegap/

  • That's one path I was thinking of using. There are some good plugins already. There is just no cohesive whole in the IDE. I'm sure Ashley could add a curve window if he felt the feature was worth it. Personally I think it is, especially after having use it so extensively. But I honestly didn't think they were that big a deal until I did.

  • I thoguht the blog explaining IOS would be enough.

    IOS8 WebKit that all browsers(except when running safari) are now able to access Nitro(accelerated javascript runtime compiler) and WebGL(full GPU acceleration). This means that PhoneGap will get access to it's weakest performance areas. The JS runtime and the GPU which Phonegap could not use. However this only counts as IOS8+

    IOS7 does not allow PhoneGap or other browsers including WebApps to access Nitro or WebGL. So when running a game not in Safari will suffer large performance loss. So people made Ejecta. Which has a good JS runtime and a good graphics rendering.

    If you want to support IOS7 and lower. You need to sue Ejecta/CacoonJS. If you are willing to support only IOS8+ then PhoneGap is probably going to be the better choice int he long run. Also and this is my favorite news. PhoneGap allows Cordova plugins. And... drool. Someone is making a PhoneGap WebRTC plugin. Where as no one is doing that with Ejecta. So when the that plugin is done.

    PhoneGap =

    WebGL

    Nitro

    WebRTC

    Full memory management.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I've requested functions to be a primitve rather than a plugin. As a primitive then they would get the auto correction. however that's not the case. if you need a fix for now.... sigh. I've done this before.

    --------

    Object.YourFunctionVar = "foo"

    --------

    --------

    Function.OnCall( "foo" )

    --------

    Function.Call( object.YourFunctionVar )

    Under this model you only need to actually spell your function 2 times. Once for the OnFunctionCall and the other in the object variable that holds the string. For some reason you can't do

    Function.OnCall( object.YourFunctionVar )

    makes me a sad panda.

  • the second is trig.

    Loop this

    angle =+ 1

    radius =+ 1

    x = cos( angle ) *radius

    y = sin( angle ) * radius

    then tinker as needed.

  • I should addendum. That the curve editor in question would be able to support more than one curve. The curve should have key's and tangets to support multiple curves. I'm not requesting a single curve based on an algorithm, but more complicated curve patterns.

    So to be a little more clear. I'm looking for this.

    http://math.hws.edu/eck/cs424/notes2013 ... ezier.html

    and not this

    http://cubic-bezier.com/#.68,-0.65,.5,1.85

  • Oh assuredly one can use pure mathematical curves logorithms. In fact i use Lunaray, lerp and cubic here and there. However having actually used a full on bezier curve editor allowed for a lot more fine precision modifications easily.

    Spriters curve editor is more appropriate as an example to be user friendly. I've done the code wise and it works fine. But the editor style is just more of a pleasure to use.

    The alternative is to find a curve editor and create an evaluator plugin. Then use some copy paste the curve into string. It would be just more pleasant to use an in editor window to do so

  • Personally I think Maor has done an amazing job. He has managed to get the game running under Android well enough to publish. Especially since the game wasn't mobile optimized when the mobile part of the journey started. So I'm rooting that we can get this to work. This project would certainly be a testament to the human effort and larger games. Even if it's not something like Crysis

    I think bjadams has an idea. Might as well try it out. out of all the optimizing done you never know. A lot was changes on being more efficient on rendering on many levels.

    Good luck Maor. I think when you have a Mac on Friday that can help identify the problem.

    In the mean time. how about another experiment. Full game, but remove the audio from the project entirely. I wouldn't think there would be much of a problem with audio if it's not being called. but might as well experiment. audio also tends to unpack to larger sizes in memory.

  • Ashley

    Bezier Curve Object

    Bezier Curve window

    Ok. As part of my job I work with Unity. I wasn't into curves before. But after doing some unique animation, movement and all sorts of stuff. I found that bezier curves are magical, amazing and by far one of the most amazing tools to have in game development. I could manually write a bezier curve plugin and evaluator. However what I can't create is the window to create curves. That's an element of the IDE level we don't have.

    What would be fantastic would be a variable like instance based that stores as a Bezier Curve. That way the curve could be added to Objects, be a global variable or a group variable. So it would sit similar to Number,String

    Some of the stuff I have done with bezier curves.

    *Custom sized banners that animate the size to the speed for nice bounce effects.

    *Easily controlled "jump" effect objects(for not platforming game. just feed back for something simple)

    *Animate 30+ objects with different animations with a single set of frames with 1 animation.

    Let's start with Spriter a tool we have access to.

    Subscribe to Construct videos now

    These are just some of the simpler stuff that can be done. However it shows that as a curve is evaluated position, scale, alpha can all be set based on a time. With curves having controllable tangents allows these evaluated to visual numbers can have some excellent effects.

    Here is an examples of both curves and algorithm

    http://www.motionscript.com/articles/bo ... shoot.html

    At work for my part of a project as a sample. The lead designer requested a procedural generated bush animation that could mimic different states of wind blowing.

    no wind, light win, medium winds, heavy, rapid. When looking at the art there were 40 sets of animated objects to work with. Most of the bushes, grass in various colour tones. The idea of making 40x5 animations was kinda daunting. Since this was procedural I took advantage of curves.

    I had 1 master curve that would represent the scenes wind strength at a long given period of time. The sample used 15 seconds. With the last 5 just representing calm to test out no wind.

    There were 6 curves timed at 0.5 to 1 second a piece. These child curves represented a percentage based animation frame. So 0 was 0 frame, 0.5 was middle frame, and 1 was last frame. So no matter how many frames there were there was a translation 0 to 1 as a percentage to match up the with the animation frames.

    A child curve then represented a cosine wave usually about 2-6 times over 1 second with all of them at varrying heights in the curve. Usually apx 20-30% difference.

    When a child had no animation(first and finished) it would evaluate the current time of the master curve and get the wind strength. Then it would get a random value from current-1 to current +1 out of the child range.

    In the end this produced a very nice wind like effect that conveyed the feeling of the wind at the time.

    Of course this could be just randomized and use more code like methods. however using curves made doing all of this a breeze. It was very enjoyable that just changing a curve would change the results.

    So it would be fantastic if you could please implement a curve window into C2 IDE. Spriter is awesome, but at times could be considered overkill.

    Please, please add bezier curves to the IDE. It would raise C2 productivity many fold on the visual side.

jayderyu's avatar

jayderyu

Member since 11 Apr, 2012

Twitter
jayderyu has 1 followers

Connect with jayderyu

Trophy Case

  • 12-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

16/44
How to earn trophies