kirby's Forum Posts

  • I'm trying to make an object shoot other objects when the player presses a button, but the shoots should be delayed by 0.1 seconds.

    I tried 'repeat' with 'every 0.1 seconds', but it just shoots once.

    I tried 'repeat' with 'wait', but it just freezes the game after I press the key.

    I tried substituting 'repeat' with a 'for', and it does the same in both scenarios.

    I tried to assign a variable with an 'every 0.1 seconds', but it just shoots once.

    I would post the capx but it's a mess, so if you really need me, I'll try to recreate the problem in a new one (I hope that's not necessary).

    Thanks in advance!

  • It works XP SP3, with an Intel g41 Express Chipset.

    I'm updating the driver even when it says it's ok (because it's almost two years old xD).

    I think it will be very useful to be able to copy-paste the results of the test, so you can copy the name of the graphics card when you search for it at the website.

    My girlfriend's lap acts slow with my game, so we're going to try it now there. I'll come back with more results.

    Edit:

    It didn't detect an Intel GMA 4500MHD, not even after the driver update. updating fixed the slowness, though.

  • Thank you very much! It works now!

    You'll be in the credits of every game for the contest, it appears xD

  • It doesn't work because if the layer is not rotated (i.e. layerangle = 0), its sine = 0, so y = cy.

    :<

  • Then it looks like a bug. I'll confirm it tomorrow.

  • Note if WebGL is enabled in project properties, due to technical limitations all Text objects appear on top of everything else in the game. For example, Sprites cannot be displayed on top of Text objects when WebGL is on, because the text is rendered to an overlay above the game. It is recommended to design your game so it is not necessary for other objects to appear on top of text objects, since turning off WebGL can reduce performance.from here: http://www.scirra.com/manual/116/text

  • I had this problem and reported it here: http://www.scirra.com/forum/topic48644.html.

    Ashley said it was repaired in this release (79.4), but as I did a workaround to make it work, I haven't tried it. Are you using 79.4?

  • I never figured out trigonometry enough to solve this little problem I have.

    As you may know, when a layer rotates in construct, it rotates with its axis included, so the coordinates move with it, something like this:

    <img src="http://img707.imageshack.us/img707/5083/001sng.png" border="0" />

    <img src="http://img26.imageshack.us/img26/8682/002bcp.png" border="0" />

    Now, I need a formula that, knowing the angle of rotation of the layer, tells me the visual position of a point (in the example, I would want (0,y) instead of (x,y)).

    Any help would be greatly appreciated n__n!

    Edit: note that the point can move freely. So I need to know the absolute position of the point of its relative position in the rotated layer.

  • If I remember correctly, teleporting a physical object causes it to travel the distance in one tick, which makes it unstable to calculate.

    I suppose you can create a new ball in the opposite X or Y of the screen and give that ball a velocity of the ball that left the screen, then destroy the other one.

  • You do not have permission to view this post

  • Thanks! I got it working n__n!

  • OMG, sorry, I kept on editing the same file, let me revert to original... But shouldn't friction prevent rotation? I want it to rotate, but to stop quickly...

    I'm going to try what you said and see what happens (and save it in another file, sorry, I reverted this to the original).

    Edit:

    What I'm really trying to do is make two balls (rotating normally) attract to each other, and once they're in contact, the bigger ball can take the other around. Like a planet carries things and not let them stay in the same point of space.

  • Every time I use a circle collision mask, friction is completely ignored. I tried reducing bounciness to 0 (and friction to 100, even when I suppose anything above 1 will be 1) in both objects, but the ball completely ignores the friction.

    I would do a polygon collision mask, but I want a very big circle interacting, and that just wouldn't work.

    dl.dropbox.com/u/41192999/friction0.capx <- capx demonstrating.

    PS: I don't know if I'm doing something wrong, otherwise I suppose it's a bug (because a ball should stop down a hill if both have such friction!)

    I wish I could copy pasted the text... oh well...

    OpenSuse 12.1, Chrome 19.0.1036.7 (dev):

    ID: DragonRise inc.

    Generic USB Joystick

    (Vendor: 0079 Product: 0006)

    C2 = My Joystick

    Button 0 = 1

    Button 1 = 2

    Button 2 = 3

    Button 3 = 4

    Button 4 = L1

    Button 5 = R1

    Button 6 = L2

    Button 7 = R2

    Button 8 = Select

    Button 9 = Start

    Button 10 = Left stick click

    Button 11 = Right stick click

    Axis 0 = Left stick (-100 = L, 100 = R)

    Axis 1 = Left Stick (-100 = U, 100 = D)

    Axis 2 = ? It activates sometimes in combination with either stick o.O

    Axis 3 = Right stick (-100 = L, 100 = R)

    Axis 4 = Right Stick (-100 = U, 100 = D)

    Axis 5 = D-pad (-100 = L, 100 = R)

    Axis 6 = D-pad (-100 = U, 100 = D)

  • Ok, got it all. Nothing more to ask. Thank you very much!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads