Indomitus's Recent Forum Activity

  • Hello fellas,

    How can I program an AI that can avoid obstacles and try to score using different angle options, e.g. Billiards game.

    The AI on its turn should analyze and consider (between all the balls on its way) if there's any possible way or angle to shoot the ball and score, if not, to shoot it (with a proportional force) in a direction which can place the ball closer to the goal.

    I appreciate in advance any help, once again, thanks!

  • Hi R0J0, after a few days I could solve the formulas and worked like charm!

    Thanks so much for the input, I'm pretty sure this information will be helpful to future constructors.

    Cheers!

  • Thanks a lot R0J0, I look forward to give it a shot.

    Though, I don't want to fix the angle to the right when the ball stops, I'd like to keep the same angle it has before stopping. Maybe the same principle but in reverse mode?

  • R0J0hound thanks for your answer, great that there's a way to achieve this, though, for me looks a bit abstract due my knowledge on C2 and mathematics (tried a couple of days trying to figure out what you wrote), however, I'm always amazed by people that has this knowledge and I would like to understand these formulas.

    You mentioned a horizontal angle of motion, maybe I didn't explain myself so good, but the game is like billiard, where the ball bounces against the rails, thus changing its angle. I used the angle formula, but every time when the ball stops it changes the angle of the current frame to horizontal.

    Are these formulas still working for what I need? By the way, I'm using 40 frames in my animation.

    Much appreciated.

  • Hello fellas!

    I don't want to be considered as a spammer, but unfortunately the information I found on the forums was to less and sometimes incomplete, that's why I bring the topic again and I hope we get it right.

    My case is that I have a physics ball which I want to animate its movement. It has already several frames to make the rolling illusion.

    The thing is that I would like to get the speed to move the frames, thus getting a real effect.

    I already tried a few codes without any success:

    distance(0,0,sprite.physics.velocityX,sprite.physics.velocityY) to get the speed, and angle (0,0,sprite.physics.velocityX,sprite.physics.velocityY) to get the angle of the shot.

    I also tried to change from physics to bullet and the results where even crazier than before.

    I think this should be achievable, and if we find a solution it will be a great input since this is an important way to simulate some kind of 3D in the Construct's 2D environment.

    Thanks in advance!

  • Sorry for the delay on my post. After cooling my head down I could understand what you said and worked like a charm, thanks a lot!

  • Hi Wastrel, can we get the working capx back, please? I'm looking for the same information and didn't alert you before, thanks in advance!

  • Hi there, eski can we get the links back if possible? thanks!

  • Hi Stain, thanks for your fast response!

    Sorry but I still don`t get it, part of my brain is fried right now. Can you explain it once again, please?

  • Hello again Constructors! once again I need some help from the pros...

    I have been developing a game which uses a catapult system, specifically the power of the shot is equal to the distance between the touch (cursor) position and the ball position.

    The thing is that I have a radial power bar with 24 frames that should display the force of the shot. The idea is to link all together, if the cursor gets closer then the radial bar should be something around the 3rd or 6th frame.

    There should be a limitation on the force as well, because the max force will be when the radial reaches the 24th frame, even if the player points far in the distance the max force should stay at the same value for the 24th frame.

    I'm not sure if I explained it in a way it doesn't look complicated, I don't have a CAPX due this problem is quite abstract for me right now. Though questions are more than welcome to clarify the information for those helping minds

    Thanks in advance!

  • Bump.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks a lot for your feedback Sbucci, I edited the post a little bit!

    Cheers!

Indomitus's avatar

Indomitus

Member since 14 Jan, 2015

None one is following Indomitus yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies