mekonbekon's Recent Forum Activity

  • If the non-player object is simply performing a ping-pong movement left and right it might be better to remove the platform behaviour and either:

    1) add another sine behaviour set to horizontal movement

    or

    2) give the object max_X, min_X and speed instance variables then add code along the lines of:

    Every tick object.X = self.X+self.speed

    If object.X > object.max_X OR object.X < object.min_X, trigger once, object.speed = object.speed*-1

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The player sprite doesn't need solid, just platform behaviour.

    The floor doesn't need physics, just solid.

  • Try:

    Hero is on floor

    (sub event) Right arrow is down OR on touched object

  • I've used bitballoon to host many games and not had any problem with arrays, which I use often. I don't zip the files though - maybe that's part of the problem?

  • jeffige

    I got excited when i read your suggestion as i didn't think of that and seems obvious, but unfortunately, the platform is a tiled background so unless i'm mistaken, you can't modify collision points.

    Could you not move the collision box on the avatar up a couple of pixels instead?

    Alternatively, how about changing the tiled background for a tilemap? You can set the collision individually for each tile.

  • A slightly simpler solution without using arrays:

    Use System condition|Compare two values:

    If (value-1%4) is equal to 0

    and value > 8

    Set button visible

    else Set button invisible

  • Where are the newX and newY values coming from?

  • It's very easy

    Click on the shadow light object; adjust its opacity value in the object's properties - about 15% should work fine.

  • You could try the following:

    Add instance variables "directionX" and "directionY" to the block

    Set those variables at the start to 0

    On moving block:

    enable bullet behaviour;

    if direction = up set directionY to -1,

    if direction = down set directionY to 1,

    if direction = left set directionX to -1,

    if direction = right set directionX to 1

    On block overlapping with wall:

    disable bullet behaviour;

    Set block (X,Y) to ((block.directionX*(wall.width+block.width)/2)+wall.X ,(block.directionY*(wall.height+block.height)/2)+wall.Y);

    Set block.directionX and block.directionY to 0

    This method assumes that your blocks and walls are positioned on a grid.

  • Are you trying to make sure that the second level stays locked after completing the first level, or to unlock automatically after completing the first level? Or maybe something else...

  • Do you have any other actions running on the loading is complete event, e.g. go to layout? If so test by commenting those additional actions out and just run the "loading is complete" event and "destroy object" action to check that those actions aren't preventing the object being destroyed.

    Also, silly question perhaps, but is the object you are destroying actually on the loader layout or on another layout?

  • Hi, I bought this book a while back, and on the whole I think it does a pretty good job of introducing the basics and would recommend it to beginners. Yes, you can find pretty much everything you need in the tutorials and manual, but often having a well structured collation of the fundamentals that you can work through systematically is a much more efficient way to get a solid grounding. Nice work roberto!

mekonbekon's avatar

mekonbekon

Early Adopter

Member since 9 May, 2014

Twitter
mekonbekon has 13 followers

Trophy Case

  • 10-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • x2
    Popular Game One of your games has over 1,000 players
  • Famous Game One of your games has over 10,000 players
  • Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

19/44
How to earn trophies