MrMiller's Forum Posts

  • Could you rephrase that? I'm not certain of what you mean. I have Layouts 1,2,3 and 4.

  • I'm using Construct Classic R1 (not 1.1). I built 4 layouts, and in Layout 1 I input a random expression to randomly move to different layouts on a button press:

    Button B is down > + System Go To layout random(4) with transition 'None' lasting 0 MS

    Overall it works and does randomly jump, except for some reason it decides to close the window often instead of jumping to another layout. Is there something with the expression that could be causing it?

  • The mouse isn't setting the angle, it's setting the target (or the location to arc to).

    To target a different object just replace "mousex" and "mousey" with the object's x and y.

    This worked with your newest example, but for some reason it won't respond in the physics example you posted.

  • Got it. The problem was that only one leg was registering collision for some reason. However, when I switched to using an Ellipse Collision mask on the limb that wasn't colliding, it made me able to dribble in both directions.

  • Great example Chris.

    I found that I was able to get the legs to collide with the ball and take advantage of physics, by allocating a physics behavior to both leg limbs. So the character is able to dribble the ball around like a soccer player.

    The only two things I haven't gotten to yet is figuring out why I can't dribble the ball to the left. It's strange, I can move it to the right all the way to the end of the screen, but when I get to the end and try to dribble back to the left the ball won't move. Hmmmm.

  • Hey guys,

    I've been in touch with them about making a contribution. You can bet that I'll be sure to report back here on exactly how things have gone, very soon...

  • CONGRATULATIONS, LUCID! THIS IS AWESOME!!!

  • Sounds great!

    So will the bug tracker still be used to report bugs for this?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The mouse isn't setting the angle, it's setting the target (or the location to arc to).

    Right. My mistake, I meant to say arc.

    To target a different object just replace "mousex" and "mousey" with the object's x and y.

    The expression is where I'm stuck. I want to be able to throw the object with a controller button and have the arc's size only be based on how far the distance the ball being thrown is from the object being thrown to. For example:

    01 ======= 02

    ^^^

    The 01 represents the object the ball is being thrown from. 02 represents the object that will catch the ball. Because the distance is short the arc will be short.

    01 ============================================= 02

    ^^^ In this one, since the distance is longer the arc will be higher.

    Here is all I was able to get up to:

    <img src="http://farm6.static.flickr.com/5148/5687138761_da25ea522d_z.jpg">

  • You can do it with one event with the physics behavior. Change the PV 't' to change how long in seconds it takes to get to the target.

    http://dl.dropbox.com/u/5426011/examples4/projectile2.cap made in 0.99.97

    Hey Rojohound,

    That .cap is great. I've never used the Physics behavior in Consruct before and I was wondering... is there a way to make the thrown object move to another object the same way as your example, but instead by using a single 360 button or PC keyboard command instead of using the mouse to set an angle?

    For example: I press 'A' on the 360 controller and the ball arcs to object A. I press 'B' and the ball arcs to object B, and so on and so forth.

    I've been able to activate the ball movement based on a mouse left click and set the ball's angle to the position of the target, but I'm having trouble changing the expression in the velocity equation to do what my example above describes.

  • Great information indeed, but forgive me if I'm missing something, but isn't the question really... "how do I do this in Construct?" And if so, how would you translate that information that's written in a language programming environment to Construct which is an event-based programming environment which inherently requires steps, input techniques and understandings that differ pretty much entirely from those found in the language programming environment used as an example in the flash video?

  • For anyone working on C1, I just want to make a humble request... if anything can be done to get the layout object to work properly when you export a project to .exe, along with taking a look at the issue where game clocks made with global variables tend to break (i.e. won't always show visible between all layouts where it's supposed to be present, or starts to calculate incorrectly) it would be a Godsend!

  • There's also the option of CPM ad-supported software. There are free programs out there making a fortune from ad supported software business models. It's an instant money-maker, because you're getting paid each time the user opens the program.

  • If there is only an "is down" condition for the controller, then refine your first appoach. Add a global "isPaused" and combine the "Start is down" condition with "Trigger once"

    + Start is down

    + Trigger once

    -> Set isPaused to 1 - global('isPaused')

    This will set isPaused to 1 on every first press of Start, and to 0 on every second. Then add

    + isPaused equal to 1

    -> Set time scale to 0

    + else

    -> Set time scale to 1

    I don't know, if controller buttons are still detected if time scale = 0 (I don't have a controller), but apart from that the events above [s:2hjfl42f]will[/s:2hjfl42f] should work.

    Works! I wasn't sure if the trigger once command you posted was supposed to be input as an event or a condition, but I tried both and got it to work as a condition.

    And with that I'd like to start a new trend of showing a picture of the working events when a help question is solved (hopefully this will catch on):

    How to Pause the game

    <img src="http://farm6.static.flickr.com/5265/5675359651_25d7c6ce10_z.jpg">

  • I just did the following with the 360 controller:

    <img src="http://farm6.static.flickr.com/5109/5674536376_5163bf7cf2.jpg">

    ... and it pauses, except when I release the start button it unpauses. I tried using the keyboard object in its place with the same commands, but it didn't even respond.