newt's Recent Forum Activity

  • I don't know that there really is a solution for this, other than not using v-sync.

    See if the object is moving at x pixels per second and the solids are less than x in size, if there is a frame skip the object could end up on the other side. Even if you make the walls wider than the ball's maximum speed the ball could wind up in the middle of the wall, and be pushed out the other side.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Actually timedelta is the reason it can skip.

    If your not terribly worried about v-sync, you can set it to unlimited. Otherwise all you can do is make sure the ball, and walls are not set to point. Then increase the size of the ball, and the walls.

    One thing you might try is scaling the objects bigger, and scaling the view so they then look smaller....not sure if that will really help tho.

    Also the hotspot on the ball is a little off. That with rotation could be making things worse.

  • Might be getting some frame skip. That would allow it to move through solids.

  • But how would you choose paths?

    That would require changing a few things to the behavior, and probably bring up backwards compatibility

    Don't get me wrong it sounds like a good thing to add. I just don't think its as easy as you make it sound.

  • Lol changing the behavior sounds like a lot more work to me.

    Anyway this method:http://www.scirra.com/forum/viewtopic.php?f=16&t=6345 works, and can be used right now.

  • Thanks to Rojohound, and his Path behavior, and his explanation of the system expression of {,,}@, or at array access.

    This little editor lets you add a path from an external source without adding an external file.

    The way it works is you click to add a node and when your finished hit the x or y button to copy text to the clipboard, and then paste the array to your cap.

    To set up your cap you will need to clear all current nodes, and make a loop to add a node for each of them. The pathnodearray.cap example should be a good example of how to do that. Just remember to add a loopindex(loopname) to the end, and remember x, and y are set apart.

    I uploaded this as a cap just in case you want a different layout size, since they have to be the same size in both the editor and your cap. Plus if anybody wants to expand on the editor like add lines etc. feel free.

    [attachment=0:2qj8tghd][/attachment:2qj8tghd]

    http://dl.dropbox.com/u/666516/pathnodearrayexample.cap

  • I been look into the behavior and think one feature would make this so much better tthen it is now. That is to have a add/edit path function. this give you the ability to make more the one path in the editer.

    it would like the bone behavior add/edit function that lets you make new animations but it will make new path.

    Well you can kind of do that already by using an external file. Then if you don't want to do that you can clear all nodes, and add new nodes via an array. The latter might require an external editor.

  • To use an array object like this you need to get and set the value at x, xy, and xyz.

    Since you only have 6 items to track that shouldn't be too bad, but a huge array with all three dimensions could add a lot of memory, and processing.

    You would then set up a loop to set x at loopindex, x,and y at loopindex, and x,y,and z at loopindex.

    ....Might want to take a look at the Ini object.

  • Ah, never mind I thought he was talking about at runtime.

  • All you can do is copy the image to a sprite, then paste the sprite into a canvas.

  • Don't use system compare to pick objects, because it doesn't pick anything. To pick objects, use the compare height condition in the list of conditions for the object, not the system.

    That's not entirely correct. If the system compare condition is met all instances will be picked.

    There is a difference, and a different effect.

  • [quote:zrdhyekj]In doing that example I found a bug with the plugin: if the path starts off screen the object will not be drawn.

    I see what you mean. Anything that's off screen isn't drawn because of the way Construct is set up.

    Kind of like what happens with a canvas. Not necessarily a behavior bug, but I guess you could do a work around by not letting it have nodes outside of the layout.

newt's avatar

newt

Member since 12 Nov, 2008

Twitter
newt has 27 followers

Trophy Case

  • 16-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

31/44
How to earn trophies