littanana's Forum Posts

  • I just want to make a way to place boxes on the map with an array almost like spelunky...

    http://tinysubversions.com/spelunkyGen2/

    i have my blocks set with 1 being filled and 0 being empty like this;

    {"c2array":true,"size":[15,12,1],"data":
    [[[1],[1],[1],[1],[1],[1],[1],[1],[1],[1]],
    [[1],[0],[0],[0],[0],[0],[0],[0],[0],[1]],
    [[1],[0],[1],[1],[0],[0],[0],[0],[0],[1]],
    [[1],[0],[0],[0],[0],[0],[0],[0],[0],[1]],
    [[1],[1],[1],[1],[1],[1],[1],[0],[0],[1]],
    [[1],[0],[0],[0],[0],[0],[0],[0],[0],[1]],
    [[1],[0],[0],[0],[0],[0],[0],[0],[0],[1]],
    [[1],[0],[0],[0],[0],[1],[1],[1],[0],[1]],
    [[1],[0],[0],[0],[0],[0],[0],[0],[0],[1]],
    [[1],[1],[1],[1],[0],[0],[0],[1],[1],[1]]]}[/code:omitk5ov]
    
    [img="http://i.imgur.com/1DH53kS.png"]
    When I press J it loads it to ajax, but pressing K does nothing to the array. The values don't change in the debug editor and I'm lost.
    
    [img="http://i.imgur.com/ABKQuEs.png"]
    And sometimes it randomly just gives this when I keep  pressing the buttons...
    
    What's wrong with all of this?
    
    Like I don't want  anything complicated I just want the game to read the maps from 0(empty),1(solid blocks) and later 2(enemies) and 3(gems).
  • I'm bad at explaining this so I made a quick mockup picture.

    Basically what I want to happen is that since I'm using the flat tiles with no decorations to build my map. I would like to create few tiles with random decorations, as you can see i quickly made with paint for the picture. And when the layout starts for every tile there is a say 1/10 chance to change into a random tile that is the same spot but has decoration on it. You know to make the game look a bit more randomized and not just a big blank box.

    Is this possible to do with C2?

    something like this:

    on layout start if tile is "1"

    change tile to: "choose (1,1,1,1,1,1,1,1,1,2)"

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • this is as far as i can get without crying anyone wanna help me smooth this out a bit? ... like mostly i want to figure out how to delete that small delay? idk

    https://drive.google.com/file/d/0Bw7sth ... sp=sharing

  • I am able to create text, in a bubble... However. I want the bubble to chance size depending on the text. Also I want the text to automatically go on a new line when it goes too long.

    No idea how to approach this, can anyone help me out?

    What are these supposed to do and how do i use them.

    I'm trying to set the bubble size to text.textheight & text.textwidth but my bubble just dissappears.

  • i'm also interested in this

  • Maybe make the paster be at an integer position like int(scrollx).int(scrolly)

    thank you so much! :>

  • This worked much better, however there is some stutter with the drawing. I am trying to draw the player sprite, which is positioned every tick on the playerbox sprite(which is invisible), and the playerbox has scroll to behavior. It works perfectly for the other objects though.

    http://imgur.com/a/xOTSX <- link has a screencap of the stutter and how it looks like now

    i pasted the set position to event multiple times to avoid random offset

  • http://imgur.com/a/Co0qg

    That is what I did but this is my end result. The reason why the sprite overlaps the outline while jumping is because on that point the view is on the very top left part of the map and has not scrolled anywhere.

    What is causing this offshift?

  • I really like the outline effect but i run into a problem that if i make the paster big enough to cover my whole canvas it makes my game lag like crazy (multiple objects need pasting etc.) So i was wondering that if i were possible to have it stay on my hud layer and move when i move so it only needs to paste the sprites that are visible, but i really just cant get that to work. Could someone help me out?

  • Here is an example from the game if you haven't seen it:

    Subscribe to Construct videos now

    I could use some help to break it down what the gems are doing and why do the look so nice and smooth when moving.

    I just love how bouncy they are especially when you destroy a gem vein and the room is filled with the gems.

    Currently I have the items as physics objects w/ 100% elasticity and when they hit the ground they lose 20% of their elasticity. It still does't make them look right at all...

  • Add an event to make it so if a variable would go under zero, it makes it zero instead.

    Or to the event which substracts the variable, add to the event that it can not be substracted if it it would go under 0.

  • Ah, my pretty placeholder art in all its outlined glory.

    Hey, how can I prevent newly spawned objects to have a outline too? Is there a way to reset the canvas?That black box should look the same than the orange ones.

    Edit: nvm I was just creating the objects on the wrong layer.

  • Toon doesn't create outlines of objects.

    Here's a non-webgl way to do outlines with the paster object.

    https://dl.dropboxusercontent.com/u/542 ... tline.capx

    I wrote a rly long post but I somehow managed to lose it since I had to sign in again when I was trying to post it?? Either way, this is exactly what I am after and I am so glad to see this!

    Thank you so much! :>

  • Oh um, there is a webGL effect called Toon that should create outlines, but I'm not quite sure why its not making them on my objects... I will try and figure this out lol

  • For me it works, but I have not tried it with every exporter.

    (edit: seems to be compatible with nw.js)

    It gives this error: "Unable to load plugin in 'C:\Program Files\Construct 2\exporters\html5\plugins\outline\': Cannot open file 'C:\Program Files\Construct 2\exporters\html5\plugins\outline\common.js'

    This plugin will not be available in the editor.

    Am I putting it in the wrong folder or something? I haven't tried to install plugins before.

    Why not just create your graphics with outlines?

    Another option would be to use the paster object to only create outlines for the stuff on screen. Basically paste all the objects you want to have an outline to it. Make it all black by pasting a all black object to it with a blend mode. Then finally pasting it to a second object in all 8 directions.

    The shader would likely be the fastest. I don't use webgl anymore so I haven't touched the effect in a while.

    Well I don't want the outline to overlap with the actual graphics so they all should run in the background so I can't create them with outlines.

    I will look into that other option you talked about. I'm not to experienced with any of that but I will see what I can do by myself.