pcfernandesjr's Recent Forum Activity

  • Take a look at this post:

    https://www.construct.net/en/forum/construct-2/how-do-i-18/how-do-i-shoot-a-diagonal-proj-134945

    Thanks, I will! :)

  • Hi there fellow Construct2 users!

    I am working on a 2D side scrolling game, and I am trying to create an enemy that behaves like a bomb/grenade thrower.

    What I want it to do is to throw bombs at the player in a arc, considering the distance between it's position and the player's.

    What I managed to to is to make it fire projectiles in a arc, but it is not considering its distance from the Player. And I have no clue on how to do it.

    This is what my code looks like currently:

    This is how it looks like at the moment:

    I'd be really grateful is someone is able to help me on this.

    Thanks in advance!

  • Hi there fellow Construct2 users!

    I'd like to report a bug, from release 265 (64-bit).

    For the second time, I was at the verge of losing my project due to an error that makes some assets disappear. Namely some png's

    Here is the screenshot of the error:

    Can someone help me with this? If there are more info needed I will provide as soon as possible.

    Thanks in advance!

  • Got around to having another go at this finally. I've only tested on my laptop but it should work with all resolutions. I also added a variable to control screen curvature.

    You can apply this to layouts, layers or sprite objects if you want to. Just be sure to set width and height to whatever size your object is. For instance, if you're applying it to a layout you should set width and height to the game resolution. If you put it on a sprite then set it to the sprite's size.

    It works best with pixel rounding turned on and fullscreen scaling on high quality.

    https://dl.dropboxusercontent.com/u/70562654/LottesCRT.zip

    Hi there! Any chances to have this re-uploaded?

    Thanks!

    Hi there guys

    Somehow I found this builder application for C2. I searched at the forums here about more information, but couldn't find anything.

    Have you guys heard about this? I wonder if it is reliable.

    (links removed)

    Cheers!

  • ludei hey I'm using cocoon.io and I'm having issues with compiling iOS. Android compiles fine but iOS never compiles. Here's what I did.

    Exported C2 project with Cordova, I compressed the files into zip folder excluding the config.xml, I used guided creation to help me, chose to drop a zip file, chose canvas+, I installed the in app browser plugin, put the same Bundle ID as in the ios app, uploaded an icon, and tried to compile but fails with iOS.

    I didn't touch the signing keys and I don't know what Content URL is for so I didn't touch that either (is this the problem?).

    I even followed this tutorial but no luck.

    http://www.joshmorony.com/how-to-build- ... -cocoonjs/

    What am I doing wrong? Please help. Thanks.

    I am struggling with the same problem

  • Hi R0J0hound!

    Just passing by to let you know that I managed to adapt our code with success. Turned out that I forgot to declare that "i=0" at the top of the code. Now it works like a charm.

    Thank you so much for your help and patience!

  • pcfernandesjr

    Doesn't the original example do that too? Like alextro said it just positions the eggs where the player was a certain time in the past, so if the player stops they will all stack on him.

    I don't have a solution to keeping the eggs from stacking. I've tried stopping time advancement when the player doesn't move, but then the eggs are just frozen in space.

    One idea could be to think of the eggs as a chain attached to the player. So maybe leveraging the pin behavior to link them together and drop them with gravity and bounce them a bit.

    Hi R0J0hound!

    Yes, I expressed myself badly. The eggs indeed are supposed to overlap each other while they're idle. That is fine.

    What happened is that they were overlapped while in movement. But this was due some mistake I did.

    The issue now is that, for each egg that joins the line, the LERPing gets more and more screwed up. Here is the current code:

    If you want to take a look on the real thing running, I uploaded the demo on my dropbox:

    https://dl.dropboxusercontent.com/u/129 ... index.html

    Cheers!

    This is an example of what I want to achieve. If anyone can help, this will be usefull for other people.

    Hi , maybe you should do this:

    have a way to check this before starting the following part of the code:

    1-which direction your character is facing

    2-if the x position of your character is greater or smaller (depending if the player will start walking left, or right.) than the x position of the follower

    I think that should work, but as we can see I am not an specialist <img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz">

  • Hi R0J0hound!

    I followed your suggestion, but there is one problem. The eggs are overlapping each other, instead of positioning one behind another. Maybe this is something about the variables involved on LERP, or maybe the 'set target_time' part?

    Just to clarify, here is my code (the hidden bit is the 'while' part, forgot to expand it):

    Cheers!

  • R0J0hound

    Yeah, I though about something like you suggested on the code field. But I just got stuck there.

    I will try edit my code. Hope it works fine.

    Cheers and thanks for the help!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi Tokinsom! I recently saw your game on GAMESFODA E3 special. Congrats for the awesome work! Can't wait to play it.

  • Hi guys, sorry to unbury the thread, but I am currently working on an old project of mine, which uses a similar functionality. I successfully implemented R0J0hound solution, but I am struggling with one detail:

    The programming was made for a group of eggs already caught by the player, but let's say that I caught one more egg. What would be a good way of programming it to join the the other eggs as the last in line?

    Cheers!

pcfernandesjr's avatar

pcfernandesjr

Member since 12 Dec, 2012

None one is following pcfernandesjr yet!

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

16/44
How to earn trophies