littanana's Recent Forum Activity

  • 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).
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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)"

  • 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.

littanana's avatar

littanana

Member since 27 Nov, 2015

None one is following littanana yet!

Connect with littanana

Trophy Case

  • 8-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

10/44
How to earn trophies