Allbrotnar's Recent Forum Activity

  • Thanks for the reply, but that didn't seem to work.

    Here's a .capx with the broken mechanic:

    dropbox.com/s/y6yii2dbbb1q4hd/EndlessExample.capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello,

    I've been trying to get random objects to spawn in an endless jumper type template, by spawning it at a random frame.

    I used this expression:

    Sprite   | Set animation frame to int(random(3))

    to test out the first 4 objects, but it doesn't work. It doesn't even show the frame 0 sprite, but it spawns frame 3 every time. I've also tried changing the random value to (random(0,3)) in case it was a range, but that also spawns the last frame constantly. Changing the initial frame of the animation also has no effect.

    Any ideas?

    Cheers!

  • Have ditched physics almost entirely, at least for the paddle and ball.

    My problem now is with the spring that launches the ball. I can't post links yet, so I'll do my best to explain the setup.

    The spring moves down by pressing the Down key. Each pixel adds 1 to its Movement instance variable.

    When the Down key is released, the spring reverts to its original position, the Bullet behavior is enabled on the Ball, which bounces off the spring. This launches the ball successfully.

    I've implemented a reset key for when the ball accelerates too much and goes through the level barriers. This puts the ball in its original place on top of the spring, disables the Bullet behavior and sets its Bullet speed and acceleration to 0.

    When I reset and relaunch the ball, it simply disappears off screen. If I reset it one more time and try to launch it again, I also get a big javascript error and the same thing happens.

    This is the error:

    Assertion failure: Bounce normal computed as NaN

    Stack trace:

    assert2@http://localhost:50000/preview_prelude.js:12

    Runtime.prototype.calculateSolidBounceAngle@http://localhost:50000/preview.js:3773

    Acts.prototype.Bounce@http://localhost:50000/Bullet_behavior.js:291

    Action.prototype.run_object@http://localhost:50000/eveng.js:1644

    EventBlock.prototype.run_actions_and_subevents@http://localhost:50000/eveng.js:850

    EventBlock.prototype.run@http://localhost:50000/eveng.js:807

    Runtime.prototype.executeSingleTrigger@http://localhost:50000/preview.js:3998

    Runtime.prototype.triggerOnSheetForTypeName@http://localhost:50000/preview.js:3917

    Runtime.prototype.triggerOnSheet@http://localhost:50000/preview.js:3850

    Runtime.prototype.trigger@http://localhost:50000/preview.js:3811

    instanceProto.onKeyUp@http://localhost:50000/Keyboard_plugin.js:130

    instanceProto.onCreate/<@http://localhost:50000/Keyboard_plugin.js:60

    x.event.dispatch@http://localhost:50000/jquery-2.0.0.min.js:4

    x.event.add/y.handle@http://localhost:50000/jquery-2.0.0.min.js:4

    Why doesn't it relaunch at the normal speed?

  • Cheers, having a look at it now!

    *EDIT

    Had a look and the missing CAPX is a real bummer. I think I'll be playing with it without physics on the ball and paddles.

  • Great, thanks! I'll play around with those solutions and see what works.

    This is the first time I played around with physics... It was trickier than I expected.

  • Hello,

    I was trying out some ideas by making a quick pinball game. I made the paddles rotate by placing the origin point where I wanted it, and the paddles rotate between angles correctly. So far, so good.

    However, when I add physics to them so they can interact with the ball and set them as immobile (as I do not wish them to fall), they seem to rotate around a middle point, rather than the origin. I there a way to fix this?

  • Hey, I hope you don't mind some feedback.

    First of all, check your spelling on your portfolio. "Renders" should be without an apostrophe, and capitalize your I's.

    Then, when posting 3D models, people will want to see technical info about them, as well: wireframes, polycounts, things like that. Looking at the models you've posted, I would consider them much too high poly for game development, unless you want to work in renders, in which case, show your renders. Texture them, as well, or get someone to texture them and give them credit.

    Hope you don't see this as aggressive or anything bad, I just want to help you improve your chances. Good luck!

  • Thanks a lot! Still undecided as to which system I'll be using, but this definitely helps me get to grips with Construct better! :)

  • Thanks :) I realize now the problem is not the arm anymore...I'm just not sure how to straighten out the whole structure.

    Here's how it looks so far:

    screenr.com/BoAH

    EDIT: I tried another test, this time with the arm as one sprite. This does fix all of my problems with the more complex setup, but limits the range quite a lot...Might need to make an executive decision to keep it simpler.

    screenr.com/DoAH

  • Hi folks,

    I'm new here and I ran through the basic tutorial yesterday and everything makes sense, Construct 2 is a great tool, especially for me, since I have no mind for code whatsoever.

    Today I decided to test out an idea I had and see if it's feasible at all.

    Basically, I want the sprite's forearm to follow the mouse, and the arm to follow the forearm, as a kind of backwards skeleton. What I'm aiming to do is to give the player control on swinging a weapon.

    This is my sprite here:

    <img src="http://i2.photobucket.com/albums/y39/skidesigns/vik_zpsee4b59b0.png" border="0" />

    The arm and the forearm are separate objects.

    And here is how I've set up my Events sheet for the arm motion.

    <img src="http://i2.photobucket.com/albums/y39/skidesigns/Events_zps04d7b8ec.png" border="0" />

    (I've since corrected "forearm is visible" to attach to arm, rather than itself)

    The problem this seems to make is that the upper arm constantly rotates clockwise.

    Any ideas on how to fix the events? Or, if you have an idea of a better way of doing this, I am open to suggestions! Thanks! :)

Allbrotnar's avatar

Allbrotnar

Member since 4 Aug, 2013

None one is following Allbrotnar yet!

Connect with Allbrotnar

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies