andreyin's Recent Forum Activity

  • This is the exact post by R0J0hound that explains it:

    It's a mathimatical reason. The angle() function uses atan() to do the calculation, which has a range of [-180,180). Also that range is often referred to as a normalized angle and is usuful at times. Having the angle in the range of [0,360) is mainly useful in the case you stated above, and I usually convert it over in a expression with: > (angle(x1,y1,x2,y2)+360)%360 >

  • Use an else.

    Something like:

    If keyboard right key is being held -> player moves right

    else

    If keyboard left key is being held -> player moves left

  • Hi everyone,

    I have lowered my rates. Please contact me if you're interested! I can draw/animate 2D pixel art and I have a lot of experience programming in C2.

    Here's what I've been working on lately:

  • >

    > I actually don't have an Xbox yet and my game is in early development so I haven't worked with Visual Studio yet.

    >

    what exactly needs to happen with Visual Studio?

    C2 exports your game as Visual Studio project, so you can open it there and use it to run your game on Windows/Xbox modes.

  • > Same here! I'm really impressed at how fast they were.

    >

    > I'm having some trouble setting up my game though and I'm not sure if I should just wait, or try to contact somebody. Do you mind if I send you a DM?

    >

    I actually don't have an Xbox yet and my game is in early development so I haven't worked with Visual Studio yet.

    Oh, I see ):

  • Same here! I'm really impressed at how fast they were.

    I'm having some trouble setting up my game though and I'm not sure if I should just wait, or try to contact somebody. Do you mind if I send you a DM?

  • Did you update your capx? I thought about the round(lerp( thing newt mentioned and when I went to try it's already there. It actually fixed the tearing for the most part here.

    I recorded it:. https://a.pomf.cat/owzfff.webm

  • You're right. That might have to do with player.platform.maxSpeed

    Maybe she needs to move exactly a specific number of pixels for it to work. Hm

    I messed around with your .capx because I thought it had something to do with the way the camera worked, but what you said was just it. I think she's running so slow that you can actually see she shifting through every pixel. If you use 60 as her maxspeed, everything is really smooth.

  • It's working just fine here, no tearing at all but the character does "shake" a little bit while the camera is following her. I'm running the latest preview version of Windows 10 (14332).

  • Going by what you said it really should be working. Are the invisible sprites you're using the same sprite for both players, or a different sprite for each one? This could be your problem. You should pick the right sprite you want to control using "pick" events.

    If you don't want to use repetitive events when making controls, you can try a For loop. I'm pretty sure it won't help you solve the problem you're currently facing but it's a good way to have less events.

    I do it like this:

    Keep in mind that in this example I have the same sprite for both players though - I differentiate them in other events , using the object IID to set their animations (player 1 should always be playing "run"&player.iid for instance, so the animation name is "run0", while player 2 would be "run1").

  • You can use LayerToCanvas and CanvasToLayer to convert the position between layers.

    https://www.scirra.com/tutorials/1167/l ... er-example

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Is the latest xbone Dev Mode OS version 14295? My console only updated to 14290 and im getting:

    [quote:23ujtu6z]Error DEP3321 : To deploy this application, your deployment target should be running Windows Universal Runtime version 10.0.14295.0 or higher. You currently are running version 10.0.14290.1014. Please update your OS, or change your deployment target to a device with the appropriate version.

    Have you updated C2? I used to get this error before updating it.

    You should also use the preview version of Windows 10 if you aren't.

    Edit: I forgot to mention, do NOT mess with these options:

andreyin's avatar

andreyin

Member since 11 Jan, 2010

Twitter
andreyin has 1 followers

Connect with andreyin

Trophy Case

  • 14-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • x3
    Great Comment One of your comments gets 3 upvotes
  • x2
    Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

21/44
How to earn trophies