sgn15's Recent Forum Activity

  • oh? I was using the Set Position since I already have 1 instance of it in the layout. ok. Now, I first used Destroy on the existing one then create a new one. Never thought of that. Thanks!

  • yeah i tried the left and top of viewport too. doesn't change the position. It doesn't do anything.

  • What is the expression for the x and y positions of the top left corner of the screen?

    I need it for my lifebar. I already have anchor behavior and also separate HUD layer with 0,0 parallax. But I want to set the position through events because there are multiple layouts (levels) and I want to avoid having to manually move the lifebar for each layout.

    I already tried scrollx, scrolly and windowheight, windowwidth. so far, they don't work. I use start of layout as condition.

  • any help?

  • Kastas

    thanks. It worked. I would like to ask you some help again in my expanded pause menu.

    First, these are my events

    http://oi60.tinypic.com/bh13mh.jpg

    When I pause my game, (without leaving the current layout), I create the pause menu objects and text objects, basically pause has 3 options: Continue, Save and Exit, and Exit (go to Main Menu). MPause_Index refers to the option which I am pointing to, since it has only 1 value at a time.

    Option 2 (Save and Exit) is blank (no action), don't know how to do the save yet.

    Option 3 (Exit) works fine.

    Questions:

    1. When I change the order of the groups, moving the group "Pause" before the others, all 3 menu options become the same color (this should be impossible). I thought the pausing itself should be at the top since codes are read top to bottom?

    2. When I select the first (continue), GameIsPaused is not being set to 0, so the game isn't being unpaused, and also, another set of pause menu objects are being created again and again every time i press enter while already in pause.

    3. While in pause menu, when I press up, the player (which has platform behavior) is still showing walk animation first frame only, so the disabling of the platform when GameIsPaused = 1 doesn't work.

    help please. thanks in advance

  • Hi, can you give me a screenshot of the events? I can't open it because I am not yet up to date with the latest version. I can't download anything that big filesize on this connection at the moment.

  • Why does that doesn't work? I know I need different buttons for pausing and unpausing when there are NO VARIABLES involved. But I already included a global variable there.

    I also tried separating the variables' cause and effect by making 2 more events like this:

    +On Return pressed

    +GameIsPaused = 0

    ->Set GameIsPaused to 1

    +GameIsPaused = 1

    -> Set Time Scale to 0

    +On Return pressed

    +GameIsPaused = 1

    ->Set GameIsPaused to 0

    +GameIsPaused = 0

    -> Set Time Scale to 1

    but it still doesn't work.

    I really need to use only 1 button (Enter) for pause and unpause in my game.

    help please?

  • any ideas?

  • it's an enemy juggling 4 balls at the same time. How to code the movement of the balls?

    Note: there are supposed to be multiple instances of the juggler enemy.

  • I want to use the same event sheet for all playable layouts and I want to be able to go to and between layouts.

    Is there a way I can assign a value to a variable per layout? for boolean, text-type and number-type variables.

    Number-type variables can be used like an index

    level 1 layout - variable = 1

    level 2 layout - variable = 2

    and so on.

    same idea for text and boolean variables.

    Is this possible?

    or if not, is there a way to use a condition that means "if in (SPECIFIC) layout" ?

  • So the rope swings back and forth like a pendulum. The image points are in the ends (marked with X). I want the monkey's hand (marked with X) to be pinned to the ends of the rope as the rope animates (swings).

    I need to use the pin behavior because the "Set position to another object" has problems when I am adding something to the monkey's attacks

    help please. thanks.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So I have a bullet object (with bullet behavior obviously). There is a situation where it bounces off the player. No problems bouncing off. However, as the bullet bounces off, I need the bullet to spawn another object.

    Btw, I have the "Bounce off solids" property of the bullet set to NO. (I don't think it's related to the problem though).

    I tried both of these and the object is not being spawned either way. Is this how the bouncing off really works?

    +Condition when bullet will bounce off player

    -> Bullet: Bounce off player

    -> Bullet: Spawn object

    +Condition when bullet will bounce off player

    -> Bullet: Spawn object

    -> Bullet: Bounce off player

    Should I use a workaround instead?

sgn15's avatar

sgn15

Member since 20 Sep, 2013

None one is following sgn15 yet!

Trophy Case

  • 11-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Email Verified

Progress

14/44
How to earn trophies