Tokki's Recent Forum Activity

  • 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!

  • ... 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!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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)

Tokki's avatar

Tokki

Member since 26 Jan, 2012

None one is following Tokki yet!

Connect with Tokki

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies