lamar's Forum Posts

  • It's because I do not know to say "mira" that is a Portuguese word that represents what I have meant. For me it is aim/sight/crosshair/point that represent the trajectory of the ball. My problem is only with that. I can not implement. It's just that...

    OK what you are looking for is the ball trajectory.

    Sorry we had some miss-communication.

    I took Korbaach's capx and just adapted it so you can implement that in your game.

    You will need all those global variables and copy the events related to aiming the ball and setting up the trajectory line.

    https://www.dropbox.com/s/08q5wetln1eiorl/Ball%20Trajectory.capx?dl=0

  • Oh god... this system I already have and implemented, my problem is to create a aim that works! It's not the game system, it's just the aim! Its only it. I understand a bit of the system, but I can not imagine how to do the aim based on what I already have, do you understand?

    The aim system uses physics to to determine the angle and impulse applied to the ball.

    If you want an angry birds like game that is what they use.

    Download the capx and run it and that is the aim system you described.

    Sorry if that was not what you wanted because it sure is what you asked about!

  • OK here is the CAPX to download:

    https://www.dropbox.com/s/wwhnaw9v9bl5w7f/Basketball%20Shoot.capx?dl=0

    This uses just 5 events:

    The ball, net, floor and backboard all have physics behaviors. Click on their behaviors and look at the settings. I also created a net guide sprite that is hidden with physics behavior so the ball goes down through the net smoothly.

    The catapult or pivot arm is that green box with the star. I made it invisible but you will see it in the layout.

    The physics settings are just a formula to determine how far you pull back on the ball and that determines how fast and at what angle the ball is released.

    You can increase the IMPULSE if you want the ball to go faster or decrease the ball density in the ball physics settings.

    The game automatically resets after 5 seconds when the ball collides with the ground.

    That should get you started on your game and looks like a lot of fun. I made 3 baskets out of 10 shots!

    NOTE: I did not create this CAPX and it is included with C2 as a catapult example. I just modified it and tweaked the physics to be a basketball shoot game.

  • But I believe there is a simpler way to do it, all these equations are very complex I can not quite understand :/

    Physics just looks complex but once you understand the basic physics terms it is actually quite easy and for games like yours that is what you will need if you want realistic gravity and arc on your ball.

    Give me a little while to get woke up and I will make an easy to follow capx example with just a few events.

  • OK here is the CAPX to download:

    https://www.dropbox.com/s/wwhnaw9v9bl5w7f/Basketball%20Shoot.capx?dl=0

    This uses just 5 events:

    The ball, net, floor and backboard all have physics behaviors. Click on their behaviors and look at the settings. I also created a net guide sprite that is hidden with physics behavior so the ball goes down through the net smoothly.

    The catapult or pivot arm is that green box with the star. I made it invisible but you will see it in the layout.

    The physics settings are just a formula to determine how far you pull back on the ball and that determines how fast and at what angle the ball is released.

    You can increase the IMPULSE if you want the ball to go faster or decrease the ball density in the ball physics settings.

    The game automatically resets after 5 seconds when the ball collides with the ground.

    That should get you started on your game and looks like a lot of fun. I made 3 baskets out of 10 shots!

    NOTE: I did not create this CAPX and it is included with C2 as a catapult example. I just modified it and tweaked the physics to be a basketball shoot game.

  • Just my opinion but if you go running for a plugin every time you need to do something a little complex you are missing an opportunity to learn how the behaviors work and you will struggle more in the future when things don't work and you have to debug your events.

    Plugins can be helpful but some are also known to crash and in a commercial game that would be a terrible thing to have happen.

  • Amazing but is this done using plugins?

    No there is no plugin used in my example at all.

    Download the CAPX and it is simple to follow.

  • Cool!

    Are you using bullet for the boomerang/knife?

    I am thinking when it hits an obstacle have it arc upward like a boomerang would and that would give it a better chance to find a path. Maybe make it move back along the X coordinate until it finds that path.

    Not sure how your obstacles will be arranged but looks like if it goes up after a collision it will find a path back.

  • I don't think so. Doesn't Construct mention that if you try to open a project that's missing a plugin?

    Well it should but if it did not recognize it as a plugin from the events then it may just throw an error on that event.

    Your error message gives a specific line in the events and that tells me it was maybe referring to a plugin or possibly you removed a sprite from the original game folder or maybe a function that is causing the error.

    If it is not build related I would say it was a plugin or addon you had for that game. Not sure if you can tell what might have been used if you can't remember.

    Maybe someone else knows how to open and look at that error event line and see what caused it.

  • Added in a swan paddling by to add depth. Pinned sprite and flipped for reflection and gave the swan the bullet behavior and ripple effect to match the water.

    Notice how the player and swan images are on top of the water and background is behind.

    Some other effects to try: Make the water an oil painting so lines are not so sharp and change the brightness setting so it is somewhat darker than the sky and that looks more like water.

    This could also be a good effect for a ship on the ocean.

  • Gamepad worked at some point on itch.io

    You could add it back in and create some events to use it to check for sure.

    I think if I had events using it it would maybe have worked but it was just added with no events which may have caused the load to fail?

    I don't usually include gamepad in my games and I was doing it at a request but I would just be aware it may interfere with uploads to some arcade websites.

    I was just happy that is all it was because I was pretty frustrated when I couldn't get my games to upload lol!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Same scene and I added a character to move and pinned his reflection sprite and flipped it and added ripple effect to match the water.

    Pretty easy to do and you can do it for any object you want reflected in the water with no plugin needed.

  • That is just the same image flipped upside down with the ripple effect added.

  • Cool picture!

    I don't think there is a reflection effect unless someone has created a plugin I am not aware of but you do have the ripple effect and I think that is basically the same image turned upside down to create the water with a ripple effect added.

    Here is my attempt:

    https://www.dropbox.com/s/4qpop1yfhb3m7kt/Water%20Ripple.capx?dl=0

    I created a tutorial using my method for water reflections here:

    https://www.scirra.com/tutorials/9445/how-to-make-a-water-reflection

  • Problem Description

    I have a pinball game that I have uploaded to Scirra arcade and played in my browser without any issues. I added in the GamePad and had intended to include that as an option to play but never wrote any events for Gamepad.

    The game played fine in my browser but when I uploaded the HTML5 file to Itchio and Kongregate it would show the C2 load screen but load bar never loaded and game did nothing.

    I removed the GamePad from the layout and saved and exported as HTML5 with no other changes and game uploaded fine to Itchio and Kongregate.

    So it appears there may be a problem with the GamePad or some conflict with that and the HTML5 upload system.

    Attach a Capx

    ____ Upload a Capx to this post ____

    Description of Capx

    ____ Concise description of what this CapX does ____

    Steps to Reproduce Bug

    • Step 1
    • Step 2
    • Step 3 etc.

    Observed Result

    ____ What happens? ____

    Expected Result

    ____ What do you expect to happen? ____

    Affected Browsers

    • Chrome: (YES/NO) Chrome Yes
    • FireFox: (YES/NO)
    • Internet Explorer: (YES/NO)

    Operating System and Service Pack

    Windows 10 64Bit

    Construct 2 Version ID

    R243