dolphyn's Forum Posts

  • 7 posts
  • hey and thanks for replying. in fact, i remember trying that sandbox already some time earlier and it looks really promising. unfortunately, i didnt really find anything specific that would help me in these small issues.

    one thing that's puzzling me:

    that rotate to angle 0(or any angle really)

    would i have to make comparisons with:

    +player not overlapping anything/is on air

    +angle is greater OR less than 0

    then i would have to determine what direction i want the player to rotate in?

    ive tried numerous things but never really succeeded.

    comparing angles is also tricky for me:

    should i always just compare angle inside the 360 value, or do i have to use negative value, since i see it used sometimes. meaning that the straight up direction for example is sometimes -90.

    im not sure if im making any sense lol, but angles are making me feel really stupid.

  • hi again!

    ive been trying to get together a small platformer focusing heavily on loops and slopes and using physics object as a method for moving around.

    i have been able to solve most pressing issues vith angles and such, but theres still a lot of small things that make me frustrated, due to lack of my knowledge. first things first:

    heres a small .cap to illustrate what im aiming at, the basic idea.

    http://dl.dropbox.com/u/11157144/angle-issue.cap

    now the most pressing issue with it is:

    when the player is on air, not colliding with anything, id like to rotate it slowly to angle 0. BUT, im not sure how to do this, snice there doesnt seem to be a simple -rotate to angle- action. how would this be possible to achieve?

    also, if you notice from the cap, when the player stops, the animation sprite jerks back and forth for a while, does anyone know how to remedy this?

    lastly, theres an issue that when the player isnt pressin left or right while moving, the animation sprite wont check the slope angle.

    i would be also very grateful, if someone would give some really awesome guidelines or tips for that .cap, maybe improve it a little or point out all the mistakes i have made. id really like to get this basic stuff working, so i could start evolving it and create some levels.

    theres also the issue of having two separate animation sprites, because i dont know how to get the rotations to work properly with just one, it would save some precious resources if it could be done with just one anim sprite.

    anyways, thanks for reading and i hope theres someone who could help out poor old me.

    <img src="smileys/smiley1.gif" border="0" align="middle">

  • D'OH! i swear i took a quick look at the construct wiki, but somehow managed to miss that particular line. <img src="smileys/smiley9.gif" border="0" align="middle" />

    but thanks tulamide, now im a little wiser again, just have to keep that limitation in mind, so i dont go overboard with the layout size.

    anyway, cheers!

  • hi guys.

    i was testing stuff with physics and i stumbled upon something that is puzzling me:

    when the physics object travels enough pixels, eventually the physics stop working. i made a simple .cap to illustrate the problem.

    http://dl.dropbox.com/u/11157144/physics%20anomaly.cap

    i know it has something to do with the setting world scale in physics object properties, but i'd like to know what exactly is causing this? why is this happening? what purpose does it serve? why does the physics object have to stop working when it crosses a certain distance? why are my pants inside out? <img src="smileys/smiley13.gif" border="0" align="middle">

  • Here's an example: http://www.filedropper.com/angleupdateexample

    This will adjust the angle of the sprite according to the current movement angle.

    I'm sorry it took so long, but I'm in China right now, and almost every foreign file/image/video upload as well as streaming website is blocked here.

    I also only just now saw Your terrain sprite. Are those small pixels floating in the air near the terrain also part of the terrain sprite?

    thanks so much for the example, its pretty much just the thing i was looking for, and pretty simple too. once again, i was making simple things too complicated. <img src="smileys/smiley32.gif" border="0" align="middle">

    however, after fiddling around with that .cap, i realized i need to do some stuff differently. i made a simple loop and i pretty much have to make a new method of moving across the floor to make the (half)loop smooth to travel. i made an object on a hotspot thats locked to the characters angle and i give physics object force towards that object, so now it gets force to a right direction when traversing the loop (kinda similar to fancy pants- game, where theres alot of loops).

    HOWEVER, problem is, how can i make it go the other way?

    since the object changes direction when the "character" turns. so now, only right arrow makes the physics object to go both direction?

    wall o' text, sorry. anyway, in short, i made a simple .cap of the problem:

    http://dl.dropbox.com/u/11157144/movement-angle-test.cap

    once again, thanks for helping me out, now i can get a little further again <img src="smileys/smiley4.gif" border="0" align="middle">

    TINY EDIT: also, i ran into this little issue,where the angle isnt showing properly when traversing upside down. maybe this picture eplains it better:

    i cant really figure out a workaround to this. <img src="smileys/smiley19.gif" border="0" align="middle">

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • wanted to bump this because im still struggling with the same problem.

    hey shindoh, is there any chance you could do a simple barebones example for what you just explained? im still not quite sure if i get it right.

    also, i tried experimenting with that example pecek posted, but it didnt work properly with a dummy physics object. there was some strange angle jerking issues i couldnt really solve. i guess it had something to do with picking and different objects.. <img src="smileys/smiley24.gif" border="0" align="middle" />

    id like to be able to get the player angle right whether im touching a floor, ceiling, wall or a curved slope, but im kind of stuck as of now.

  • yay first post ever around here! <img src="smileys/smiley31.gif" border="0" align="middle" />

    ive been lurking around here for ages though.

    i wanted to bump this thread because i too would like to know how to make that animation stuff inverted, would be really useful.

  • 7 posts