tunepunk's Forum Posts

  • I'm pretty sure I've posted more than one post this week. The graph doesn't seem to update.

  • Very interesting concept. Can't wait to see what becomes of this.

  • Here

    Yes that's the one I was using. Otherwise i wouldn't get webgl support. But found what might be the issue in a link i posted previously. Will try it out later.

  • zenox98 I did search and I didn't find anyone posting it in this part of the forum. searched for both "tinypng" and "tiny png"

  • Found this great tool for making PNG's smaller without losing much detail. Thought i might be sharing it. Can reduce project size considerably.

    Converts PNG24 images to PNG8 but preserves full alpha transparency.

    https://tinypng.com/

  • Ashley I know that, but as i just found out from this tutorial --> https://www.scirra.com/tutorials/593/windows-phone-games-with-construct-2/page-3 It seems there are some issues with the Images, some kind of security check is running on every image every tick. I'm gonna try out the tool linked in this tutorial to see if it helps.

  • You are building the game as a C# project or WinJS project?

    Aside of that put a browser (a web view) into a XAML app is less efficently than a dedicated browser

    Actually don't know. I Just took the C2 exported result and opened in Visual Studio, then deployed it to the phone. Would it make any difference? and where can i find this option of building as C# project or WinJS project?

  • When i try the game in the regular Windows phone browser i get different CPU/FPS than from a Visual Studio Build.

    Built in Phone browser. webgl

    CPU: When game is idle: approx 30% (not moving around)

    CPU: When moving around: 60%

    FPS: When game is idle: approx 60 FPS

    FPS: When moving around 58% FPS

    in Visual studio Build: 8.1 universal. webgl

    CPU: When game is idle: approx 25-40% (not moving around)

    CPU: When moving around 55%

    FPS: When game is idle: approx 60 FPS

    FPS: When moving around: 35 FPS

    How come the build has much lower fps? I cant' determine if it's the draw calls or or other things that seems to be less efficient on the VS build.

    Any idea why this is happening?

  • I don't want construct to be fully 3D but it would be nice to be able to add 3D sprites. Exactly like regular sprites that can be rotated in all directions. Basically the possiblility to add OBJ files as sprites which you can rotate in any angle. To get a smooth rotation of a simple item like a coin for example you have to use a sequence of pre rendered images which uses a lot of memory. But full 3D? nahhh. There are other softwares for full 3D games, but 3D sprites I can see would be a nice addition to construct..

    I imagine games like simple 2D asteroids for example. Where every sprite of an asteroid is actually a small 3D sprite (OBJ), instead of a pre rendered 2D sprite. That would add another dimension to games. being able to rotate the sprites in any angle, but still using a 2D canvas...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Tried to put the game in a public folder?

  • The thing I like with construct is that I am ABLE to do it alone, since I'm not much of a coder. I would like to have a team, but it's hard to get people involved and stay focused, and real life stuff gets in the way at times. But if i had the money, i wouldn't hesitate to hire talented and skilled staff to work with.

  • Ahhh.. simple as that!

  • You can find a equation by googling the distance between a line and a point.

    If a and b are the two points of the diagonal and p is the other point then the distance from p to the line would be:

    Abs(((P.x-a.x)*(b.y-a.y)-(p.y-a.y)*(b.x-a.x))/distance(a.x,a.y,b.x,b.y))

    Edit:

    Oops you wanted y distance, that would be this:

    Abs(Lerp(a.y, b.y, (P.x-a.x)/(b.x-a.x))-p.y)

    Everything works perfect, but now i noticed that 'p' needs a negative distance value if below the line. How would i go about getting that? hmmmmm

  • Good example, not so useful in this case since i was looking for a formula, but quite impressive how u solved it....

    That's just brilliant. Exactly what i was looking for.

    Thanks both. I should have payed more attention in math class.

  • Ethan thanks, but that's not really it i suppose. I'm googling a little bit and might be on to something. I need to calculate the X&Y position of a point in the slope, based on the object.... when i have that value, it's not that hard to calculate the distance between that point and the object.