part12studios's Forum Posts

  • that looks good for consistent sized images, but in my case all of the graphics are various sizes and shapes.

    so a sprite sheet would look more like this:

    d26bu41yhsbbx.cloudfront.net/img/texturepacker/spritesheet_in_20_s.jpg

    I would imagine going with your approach it could be done, but it would require a lot of wasted space to accommodate the various inconsistent sized images.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • yea that makes sense, but man wouldn't it be nice to have all of the graphics grouped together? seems like it would save download time. My project has 189 individual png graphics.. makes for longer upload and download times.. but yea thanks for confirming that i wasn't missing out on something..

    the other question is could an external program like texture packer produce sprite sheets and json or some other format to where C2 would know where to look to find a file..

    this of course sounds like it could get messy quick without C2 directly involved in the integration..

  • hmmm when i export an HTML5 project (most basic option) I have a folder filled with tons of individual files. Is there some option I'm not checking or something? I don't see anything that would indicate "make spritesheets". Minify from what I can tell just obfuscates the code, but i admit i have limited access to this mode because I can't seem to get 64bit java installed on my windows 8.1 in bootcamp.. :P

  • Hi everyone,

    So I have this project that's done, but it consists of over 100 individual png files. It almost seems like there should be some way for C2 to automatically compile those into sprite sheets to speed up the download times and save graphic memory (i think)

    I know there is the tile map feature..

    texture packer is a program that comes to mind that does this very well. I just wonder if this is a feature I'm overlooking or if there is something 3rd party that folks often use for this.

    Thanks!

    Caleb

  • yea thanks for the tip.. I did that, but it was easy being the first screen only has one input.

    Thanks!

    Caleb

  • ok i found the all preloads complete..

    how does this sound?

    i have all of scene 1 conditions require the all preloads complete.. including a black sprite which covers the screen.. and it is destroyed (or fade out if i wanted to to be smooth about it) when that condition is met which would would keep everything feeling like it's intentionally being delayed till all the audio is loaded

    Thanks

    Caleb

  • Hi there,

    So I understand that C2 does a good job of allowing games to preload and allows audio to stream and / or download to help spread out the download bandwidth and even helps prevent downloading files that are not needed when using the browser..

    that said, I wonder how I could simply force all audio and visual assets be downloaded before the first scene is visible for the player to interact with.

    I've done some initial testing and even just running the game local on Chrome, there is a delay before some of the sound begin to sound off and I really would like to not see that if at all possible.

    Yes this would mean a longer download and yes it would mean downloading assets that might not get used, but if i have a small game with a few big audio files and want the snappiest first impression, having this ability to not load the first scene till everything is 100% would be really great and I don't see where I could make this occur.

    Thanks,

    Caleb

  • Hi there,

    So I have this logic thing i'm trying to work out and for the life of me it's just not behaving as i think it should..

    so i have a simple mouse over rule. i'm using a custom icon. when the mouse hovers over various objects it goes from a custom pointer to a custom hand.. this works great.. so it's something like this:

    mouse over button 1 - play hand animation

    or

    mouse over button 2 - play hand animation

    or

    mouse over button 3 - play hand animation

    else

    play play normal animation.

    <img src="https://www.dropbox.com/s/o9fyubnx39vhv1y/capture1.PNG" border="0" />

    dropbox.com/s/o9fyubnx39vhv1y/capture1.PNG

    now the trouble i am having is that i want one of those to not always be a mouse-over condition.. so i setup a simple global variable that when a particular condition is met, to ignore that one.. so i set it up like this:

    but what ends up happening depending on where i put things.. either it ignores the other mouse overs, or it ignores the one that has the special variable.. it seems like i should just be able to nest a variable grouped with an item and have it just be another thing in the or condition somehow?

    here is another attempt..

    <img src="https://www.dropbox.com/s/7tynrn3dt0a85t2/capture2.PNG" border="0" />

    dropbox.com/s/7tynrn3dt0a85t2/capture2.PNG

    Thanks!

    Caleb

  • ok yes I totally got it now... i had to back up and just start fresh taking your clear cut example into account.. i was worried the shape of my mask graphic would be a problem since it's not a straight square, but it worked out great. Thanks! :)

  • 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

  • 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