EpicRaid's Forum Posts

  • OK. This forum is English language only though.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm not an expert on this though, but it seems you need something that 'holds' those pieces together like joints. The physics behavior can do that. There should be C2 or C3 tutorials for joints such as; https://www.construct.net/en/tutorials/physics-construct-forces-7

    Then, use a condition, like when it hits something and you set to disconnect the joints (set them 'free') and they should fall on a solid surface.

  • That seems ambitious considering C3 is a 2D engine.

    For 2D procedural generation though, I recently came across this video:

    https://www.youtube.com/watch?v=jqrgPLUbRhc

  • > ((Car.MoveTo.MovingAngle+355)%360)/10

    I'm not sure this formula is correct. It will return frame 0 if the angle range is between -5 and 5. However, when the moving angle is between 5 and 15, the frame needs to be 1.

    I think this should do the trick:

    Car set frame to round(((Car.MoveTo.MovingAngle+360)%360)/10)%36

    Thanks guys!! You're amazing. I knew it was possible, I just do not possess the skills to put that all in one line of code.

    dop2000 Your code works perfectly. Aside that, I just needed to make sure the starting position of the rendered animation was set to the right (0 degrees), and that it would rotate clockwise since that's how angles work in C3.

  • OK, thanks, the code on line 2 you posted, which condition are you using?

    And what do you mean with (36-loopindex)? Do I need to add that literally to the action as:

    Set animation frame to: (36-loopindex)

    Or did you mean something else.

    Oh and, is this code for 36 frames or 360? I'm trying to understand why you use 5 degrees, and use multiply loopindex by 10.

  • Hey,

    I've managed to create a moveable pseudo 3D sprite, but I wanted to add a total of 360 frames, and set the frame for each degree.

    Example of what I have now (it's currently got 36 frames and lines of code)

    The car sprite images is rendered in a 3D program, it 'rotates' with each image counterclockwise. So just so you know, 0 degrees started with (out of the total of 36 images) image 19. That would be frame 18 - as you can see in the code in C3 considering it's zero based.

    Anyway, I was wondering if it's possible to avoid having to make 360 lines of code? It already felt like a huge chore to do those 36 lines, copying and changing every bit!

    Perhaps it's possible to reduce it to a handful?

  • I think I figured it out.. whenever you accidentally close a Layout tab, and re-open it, it will be added to the far right of your tabs and you will need to re-arrange it.

    Apparently C3 will 'remember' that far right state, rather than the re-arrangement after re-opening that tab.

    I've been looking for a way to disable those #qjf@$% x's on the Layout tabs, the tabs are so dang small, I often accidentally close a tab when changing between them.

    Might also apply to Event sheet tabs.

  • Thanks for your reply, I'll keep it in mind. Out of curiousity, can you also create sound effects?

    Anyway, what's your take on what I wrote in my original post? Since you seem to be in that business and all.

  • Hey, nah I only recently created an itch.io account. I have not put anything up yet. It seems that I never find my content 'finished enough' to show, even though I'm proud of what I make. Also, once you put up content I feel I might be creating expectations for myself and the visitors, that I will need to turn it into a full game. I'm not sure if it's a good platform to test the waters for ideas, maybe Twitter or Reddit is better for that? I've no idea.

    What works wonders for me anyway, is switching between projects, so you'll always have something fresh and new to work on. Danger there is that you might switch and/or hop from idea to idea.

    But I think I'll just post a few things anyway. See what it does, and when people like what you create it's always rewarding and motivating to continue.

  • Graphics look good. But the gameplay.. who's your target audience? It's very repetitive and will get dull quickly. But even if it was made simplistic for kids, they will be bored as well. They need a lot of variation in everything and have a short focus span.

    I only saw one type of obstacle, the sharp pins, and I think two collectables (coin and can). You've got to improve on that, unless you only showed a few levels.

  • No I don't. I save my C3 projects on my PC. I'm not using a custom theme either.

  • Hey, I noticed when I open up my projects, somehow the layout order doesn't save.

    For example;

    Level1, Level2, Level3, Level4

    May open as;

    Level1, Level2, Level4, Level3

    I don't know why it does that, and I need to re-arrange it everytime I open up my project. I'm using Google Chrome and release r257, but I think it also did that with the last stable version.

    Is there a setting box I need to tick or is it just me?

  • Perhaps it's a corrupted file, or it has specific .png saved file settings? You could try opening it up and saving it again, otherwise bring it down to 100% in your graphics program, print screen it and make a new file, cut it out and save. Hopefuly it's got no transparency. Otherwise .jpg would also suffice. Do all .png's give you this error?

  • I also found this a bit frustrating. I even used two C2 behaviors that C3 also features; MoveTo and PinToImagePoint. Yet C3 wouldn't simply 'replace' them.

    It appears C3 is programmed differently, hence we can't copy code back and forth.

    And as you mentioned, I would definitely agree that importing a C2 regardless of missing plugins etc. would make life easier. They could just permanently 'toggle disabled' the code or something, so you could at least review it and replace it below those lines, and then delete the old code yourself.

    Now I had to delete all the lines in C2, import, add the code again, add the behaviors, etc. while switching back and forth dozens of times between C2 and C3. Fortunately in my case it was only a bunch of lines, imagine wanting to import a huge C2 project..

  • Hey, allright, brought it down an example;

    dropbox.com/s/ksdmknsl56qr47c/CarTurning.c3p

    To what numbers could I change the code to make sure the Car always turns the same way on different devices?

    It's a bit difficult to explain, I just want the car to always follow the same path regardless of the device's fps. With my old, initial code it would deviate on my new PC and not lign up with the road, sorta following a different route.