part12studios's Forum Posts

  • man that's trippy :)   but yea ok i'll play with this and see what i come up with.. very cool :)

  • ok so i'm trying some different things.. i did get it to look like this.. so far..   

    dropbox.com/s/hthlo60058m96ex/Screen%20Shot%202014-01-16%20at%2012.28.26%20PM.png

    but quick side quetsion.. why does my Z order screen often show a given object all by itself on a layer.. while there are other things on the same layer but yet it's showing that it's by itself? wouldn't all thing on layer 1 for example show they are on Layer1?   

    dropbox.com/s/m13rj93ygurd2oo/Screen%20Shot%202014-01-16%20at%2012.29.08%20PM.png

    ok nm.. i guess it does that when you click on a specific object.. just weird.. but i see them together if i click into empty space. :)

  • nevermind.. i found that.. still working through it to see if i can get closer to a good result.. so far it's the same. but i could be doing something wrong

  • hmmm ok so it seems like destination in would be ideal.. i have a mask graphic that is the right shape and i would only want the item i mark as destination in (like the example)

    it seems like there would need to be some way to link the two objects. the examples in C2 are nice, but deal with a single graphic on a solid color background.. my mask is a solid color graphic (my window to the animation if you will) on top of a colorful environment.

    I'm just not sure.. how to approach this. every combination of the blend modes either of the masked item or the masking item results in unacceptable results. maybe if i put them on another layer it would help? but i don't see how.

    i have to set the masking graphic to destination over so it's invisible to all other graphics, otherwise what good is a mask if you can see the mask right?

    the closest thing on the masked item that works in combination with thing item needed maked is set to Destination out, which you can see a clear difference between what's inside and what's outside the area to be exposed.. however the issue is that i can still see the masked object, albeit in another weird color.

    Maybe I need to use one of the more advanced effects? Overlay and Exclusion were interesting because they did crop the image but only to the side of the stage which isn't enough.

    To me the ideal solution would be to have a graphic that is 100% transparent to the viewer, but then have my other graphic be 100% hidden except when in empty (really transparent space) and not cause color distutions when the masked object passes over other colored background objects.

    dropbox.com/s/tpwsekb5kv5prpu/Screen%20Shot%202014-01-16%20at%2011.48.34%20AM.png

    this is one shot of what i'm seeing. This is just about perfect except that its' solid green blocking all of the other stuff. When i get it to be basically transparent, but not really masking the masked object it looks like this plus color distortion

    dropbox.com/s/4fh8mzvzw5qt3xt/Screen%20Shot%202014-01-16%20at%2011.46.03%20AM.png

    again close.. almost perfect if i didn't get the color distortion and the fact that you can see the effect through the mask.

    Thanks!

    Calebhttps://www.dropbox.com/s/tpwsekb5kv5prpu/Screen%20Shot%202014-01-16%20at%2011.48.34%20AM.png https://www.dropbox.com/s/4fh8mzvzw5qt3xt/Screen%20Shot%202014-01-16%20at%2011.46.03%20AM.png

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • ooo interesting.. so blend mode is what i should be looking for

    Thanks!

    Caleb

  • hey everyone,

    I'm not sure how to best phrase it but i know often people call them masks in Flash and other places. I have an animation that's one long graphic that i want to scroll across th screen, BUT the catch is that i only want it seen inside a certain area and that area is on top of the rest of the scene.

    Can C2 use / make / however it works, have a mask effect? If so where would I start?

    Thanks!

    Caleb

  • Just a final comment, LiteTween is great. I've got it doing just about everything I could ask for so thanks again for that suggestion, but also lerp is a great tip as well that I suspect will come in handy when i don't want to get tied down with a lot of behavioral things to track and just want a quick and lean interpolation between two points.

  • Also, is there anywhere that really explains what all of these various functions actually mean? I would love to understand what the difference between an EaseInOutCubic is different than EaseOutCircle, etc.

    Disregard.. I found that info here, just overlooked before.

    easings.net

  • Looking at the examples, I couldn't seem to figure out where the apple bounce effect can be seen in a demo. Is there any link to the capx for that? I'm able to make an object grow and bounce to the new size, but if i want the object to end the same size it started and would like to be sure i'm doing it the most efficient way.

    dl.dropboxusercontent.com/u/55358831/LiteTweenStretch/index.html

    Thanks!

    Caleb

  • lerp(Sprite.Y, ObjectY,(0.1*dt))

    like this?    

    seems to really slow things down..

  • oh yea that's awesome that looks like it's a kind of "tweenlite" solution found in flash / html5.. that would add a lot of cool posibilties.

    part12studios.com/temp/Lerp2 LittleStain, yea taking it down to 0.05 got this result which is much more appropriate for the kind of speed I'd need.

    Thanks!

    Caleb

  • also yes I did check that plugin and it works great, That is a big help for sure. I'm surprised this isn't a standard behavior. Moving an object with some easing between two points is pretty basic and common stuff, but hey that's what plugins are for :)

    but i would still love to understand if its possible to make LERP moves slower and if so how would it best be achieved.

  • I'll check that out as well! That could be helpful.. but since the last post i made earlier, I tried to forge ahead with LERP and this is what I came up with. It's an old post because I was having internet trouble earlier before relocating.

    LittleStain, one other quick question with LERP. It seems like everything I do is very snappy.. very fast.. is there a way i can make the lerp transition/interpolation much slower?

    dropbox.com/s/vn7i0l81md6hvs3/LerpTest1.capx.zip project file

    part12studios.com/temp/Lerp

    click the blue box to make it move to the next location.. see how it jumps? I'd like to ease that to be much much slower.

    Thanks!

    Caleb

  • yea I really like the idea of using lerp because i really just want to say move HERE and give it an X and Y value and be done with it.

    Relying on colliders to trigger events does sound like a great idea like in the case of the platformer for sure. I have used similar approaches with GameSalad, but interpolating with easing is something that is also equally helpful

    Thanks for the great advise and feedback!

  • ok awesome that worked great! I get it now and got it working similar to how you suggested! Yea I just hadn't noticed the animation options until you clearly pointed them out. Thanks a bunch for your help on this. This opens up a lot of other fun possibilities :)