Tokki's Forum Posts

  • Thank you both for helping me out! Time to study your methods!

    I get confused easily when there's so many global variables, hehe.

    I really appreciate the explanations here and in the .capx file! Thanks again!

  • That's weird... does Dropbox change links frequently? Well, I copied & pasted the link again. Hope it works now!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • ... still waiting for help! ;)

  • Hi again!

    I have multiple objects that spawn different bullets.

    I would like to have the objects spawn a different bullet at random times, but I also wish to speed up the spawn rate as the score increases.

    Here's an example of what I have now: Spawn.capx

    The bullets are in a family so the objects spawn the family & I'm glad that it picks a random bullet to spawn.

    However, putting the spawn-objects in a family doesn't work the way I want it to because they will all spawn at a random time together.

    Please help me understand how to make it work! I am a noob that really wants to learn!

    Many thanks!

  • The first thing I clicked on is the "Controls" button and then I had to refresh the game because there is no way back to the menu screen.

    I also got stuck in between the walls somehow. See here!

    I really like your color-changing platform idea though. Good luck!

  • ;O I think I get it! Thanks for the explanations!

    Sorry if it seems like I'm harrassing the forum with my noob questions. Hehe.

  • Ooh, the image point is taken into consideration in the expression as well.

    So if it was on a grid, the object can only move between those two values?

    (I'm a super noob, so I need the dumbed-down explanation. *blushes*)

  • So I'm trying to figure out what your expression means:

    X Position: You limited the object's horizontal movement or position on the x-axis to a minimum of half of the object's width and a maximum of the layout's width subtracting half of the object's width.

    Min: Half of object's width = 38

    Max: Layout's width (640) - 38 = 602

    The object's movement is limited to a minimum of 38 and a maximum of 602 on the x-axis?

    Sorry if I don't really understand. ;X

  • Kyatric's method seems less intimidating than Yann's method, but both methods work! :D

    I shall go look into what "clamp" is and where "self" is from.

    Thanks for the help guys! Much appreciated!

  • I thought that by making the ship bound by layout, the ship wouldn't escape when the mouse is outside of the layout.

    Am I supposed to bound the mouse position to the layout as well? I don't really know how to do that. How do I make sure that the spaceship will never leave the viewport? ;'(

  • I don't have any animation on the rocket ship and it's bound by layout.

    I'm a bit frustrated that the enemy sprite clearly overlaps the ship, but it does not collide & destroy it just because it's in a secret safety corner. This heavily affects the gameplay because anyone can do this to cheat and add to the score.

  • Specs: Windows 7 + Firefox + r79.4

    Example: OutofBounds.capx

    Updated:

    How do I make sure the spaceship will never leave the viewport when my mouse position is outside the game? ;'(

    The ship image appears in the viewport, but the position is outside of it so the enemies won't collide and destroy it.

    &Solved! (Removed the .capx file)

  • Ohh, okay! Thanks!

  • Thanks for helping out this noob! ;D

    I wish I could understand how the equation works. ;(

    What does adding an event without a condition do?

  • Sprite Behaviors: Bound by Layout & Solid

    Block Behavior: Solid

    I set the sprite's position to (Mouse.X, Mouse.Y) because I want the sprite to move purely by using the mouse. There's a specific area that I do not want the sprite to pass through, however, I cannot figure out how to prevent this from happening.

    I tried to use this procedure even though it's for Construct Classic, and it worked somewhat until I realized that if I set my mouse pointer in the center area of the block, the sprite passes through the wall with ease.

    Here's a small .capx as an example of my issue. Please & thank you!

    &Solved! (Removed the .capx file)