GeorgeZaharia's Recent Forum Activity

  • this might help your case tracking your users with ajax-php-mysql

    ajax-php-mysql should do the trick then is a matter of updating / making the order complete or in progress by altering the table entries

    the tutorial covers most of the aspects +- some

  • Haha, im just glad you learned something, sure you can use any code inside my examples however you want.

    > You need to use the values to adjust the sprite object position that will move around in a circle.

    >

    > here is my orbit example | test it live

    Thanks bro, that is really good and works so well.

    However if i try to add any drag and drop behaviour or touch, the moon just stops.?

    yea that is cause it needs a everytick condition to change the A and update the position.

    for position on moon that needs some more adjustments probably more than a couple :D

  • You need to use the values to adjust the sprite object position that will move around in a circle.

    here is my orbit example | test it live

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • lol ... i wish .... nah im really bad at math ... but some of the expressions we use in Construct i use them very often so i sort of understanding them in my own way.

    Anyway the above examples should help you understand the elliptical motion, whenever u want a circle movement u use cos() for X and sin() for Y.

  • Yes it could solve it if the platforms were static but the core concept of my game is to create platforms at the player position so the platforms could be anywhere. So reducing the power fixs the issue just for this case but it's possible that a platform will be a little lower.

    you lost me there, i can't understand what your trying to achieve without seeing it.

    but if u have a position at which u spawn the platforms u then calculate the distance from bottom margin of the 1st platform to the position of the 2nd block or 3rd block topmargin u spawning and set the distance to the players power jump. you will also have to adjust the gravity/fall speed and all those little values to match and react properly.

    since u using 32 pixels by 32 pixels blocks u can also set the power jump to whatever is in front of the player so if u have 2 blocks u can set jump strength to 32 * N number of blocks stacked on top of each other in front of player at a distance of 100 pixels or less lets say.

    edited: example updated pick objects that are closer than 64 pixels distance and alter player jump based on it... isn't perfect but somewhere around there.

    it might not be what ur looking for but atleast will give u an idea.

  • u have to also reduce the power of the jump to 450 sorry i edited the above reply to late. the issue is the jump takes in account the speed ur running at the faster u run the higher u jump like in real life...

  • change is W down to W was pressed. that fixes it on my end. and reduce the power jump to 450 instead of 460.

  • try this tutorial Ellpitical Orbit its a old c2 tutorial but for sure will work on your end.

    basically is using Cos() and sin()

    and this is the 2nd circular/eliptical motion one but might be a bit complicated. cause it has to many variables.

    but to rotate a object around a point u basically calculate it like this

    position x centerX + cos( A*B ) * circumferenceX

    position y centerY + sin( A*B ) * circumferenceY

    centerX and centerY are like for example the position of a planet you want a moon to spin around it.

    curcumferenceX and circumferenceY will make the circular motion change around a 3d plane of sorts(it moves in a 2d plane but altering live the values of A*B and circumferenceX or Y it will make it look like is a 3d sphere - very similar to the 2nd tutorial i linked). if u make circumeferenceY less than circumferenceX ul see it go on a smaller Y motion while keeping same X width motion.

    cos(A*B) and sin(A*B) calculates moons position relative to the position of the planet in degrees * circumferenceX or Y (not sure if i explained it the right way but that's how i understand it).

  • ok, try replicate your exact jumping system you have issues with it now, no need for other events(that is if other events are not movement based, if they are movement based please include those also in the same order/values).

    and will take a look at it.

  • every 1 seconds add to variableScore 1

    txtScore set text to "Score: " & variableScore

  • this topic here might help you with the time display from seconds to hours days etc and formating display seconds to minutes to

    and then just increment the number in that topics every 1 seconds or 5 seconds. etc... like u did in the above file.

  • i updated the file above redownload the file from the same link or press here

    if u want to subtract u just enable the 1st group and disable the 2nd one, then change daytime global variable to you target reset.

GeorgeZaharia's avatar

GeorgeZaharia

Member since 30 Jun, 2014

Twitter
GeorgeZaharia has 36 followers

Trophy Case

  • 10-Year Club
  • 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
  • x9
    Popular Game One of your games has over 1,000 players
  • x21
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,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

21/44
How to earn trophies

Blogs

  • Construct For Dummies - Simple Tutorial Collection

    I scour the Construct forums for users tutorial requests, and create small quick and simple tutorials using Construct's defaults features so anyone can use and apply them.

  • My Dev Logs

    Thinking on games 24/7 is fun and waste of time and unproductive if we don't bring those game ideas to life. In this blog im bringing my game ideas to life and log their development process.