gomotion100's Recent Forum Activity

  • It happened out of nowhere, I tried to run a preview and it just wasn't working for some reason. Any ideas as to why?

  • As explained in the manual, Global variables are NOT reset, so without seeing your events we can only guess why your actions are not triggered..

    Restart layout

    Restart the current layout. Note that unlike Go to layout, this action resets all event groups to their initial activation state. Global variables keep their current value - they are not reset. To reset them use the system action Reset global variables.

    I've already been saying that I know that using "Restart Layout" DOESN'T reset the values of a variable. What I'm saying is this:

    When Triggered

    ->Add 1 to "Variable"

    When "Variable" = 1

    -> Flash enemy on screen

    Wait 1 second

    ->Restart Layout

    My problem is that when the Layout is Restarted, "Variable" is indeed already set to 1, but when the Layout is Restarted, it acts as if "Variable" has JUST been set to 1, triggering the flashing enemy. My problem is that I don't want this to happen. I don't think you understood my problem before. I am not trying to reset any variables, all I want is for the Flash enemy event to NOT be triggered when the Layout is Restarted.

  • Reset global variables before restarting layout?

    Or add an action to the - on layout start event to get everything te way you'd like?

    I've tried everything. I just need to reset the layout without "resetting" the values of the variables. After restarting the layout, all the values will stay the same, but will do whatever they do again.

    If Attack = 1 means that an enemy will flash on screen for X seconds, then "Restart Layout" won't alter the actual value, but will act as if Attack has just been set to 1, therefore flashing the enemy. I need to find a way to stop the "Restart Layout" event from "redoing" the current values of some variables.

  • I'm making a simple battle system in C2, and at the end of each turn I use "Restart Layout" to restart the turn. But while it doesn't RESET any variables, it "resets the value of all variables".

    I'll try to make my issue easier to understand.

    On "Attack Button" clicked

    ->Add 1 to "Attack Variable"

    When "Attack Variable" = 1

    ->do the attack thingy

    The problem I have is that, when the layout is restarted, it resets "Attack Variable" to 1 which "does the attack thingy" again, at the battle menu screen.

    What do?

  • >

    > > Try

    > >

    > > > If Space pressed
    > >   Object is on Layer 2
    > >     -> Move Object to Layer 4
    > >   Else
    > >     -> Move Object to Layer 2[/code:35s0mmqn]
    > > 
    > 
    > It says that Else is not valid.
    > 
    
    If else is not valid then just change it to this:
    
    [code:35s0mmqn]
    If Space pressed
      Object is on Layer 2
        -> Move Object to Layer 4
      Object is on Layer 2(invert)
        -> Move Object to Layer 2[/code:35s0mmqn]
    

    Okay, thank you.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • > If Player.Y = 768

    > Object is on Layer 2

    > --> Move Object to Layer 4

    >

    > If Player.Y = 768

    > Object is on Layer 4

    > --> Move Object to Layer 2

    >

    > I am f***ing infuriated right now, after 2 hours trying to figure this out. I would seriously appreciate if somebody could help me.

    >

    Why have you pointlessly created another thread of the exact same query when you already have an active thread? This is extremely frowned upon.

    From what I can see, the response from 7soul is valid. You must have done something wrong.

    Rather than rant, the quickest way to get an effective response is to post your .capx so we can see exactly what you have done.

    I apologise. The methods I were given I tried, and didn't work for me. I made a new one because nobody else was replying to that one.

  • If Player.Y = 768

    Object is on Layer 2

    --> Move Object to Layer 4

    If Player.Y = 768

    Object is on Layer 4

    --> Move Object to Layer 2

    I am f***ing infuriated right now, after 2 hours trying to figure this out. I would seriously appreciate if somebody could help me.

  • Try

    > If Space pressed
      Object is on Layer 2
        -> Move Object to Layer 4
      Else
        -> Move Object to Layer 2[/code:1xl2bcen]
    

    It says that Else is not valid.

  • I've been trying to do this for an hour.

    I have two events.

    If Space pressed

    Object is on Layer 2

    ->Trigger Once ----> Move Object to Layer 4

    If Space pressed

    Object is on Layer 4

    ->Trigger Once ----> Move Object to Layer 2

    No amtter what the trigger is, the object won't do anything.

  • Use 'point' sampling in project properties.

    Thanks, got it working.

  • It's a pixel art driven game btw

  • Here's what I mean http://i.imgur.com/dJ3I0ba.png

    They're all tiled sprites. The top sprite is so blurry that it's coming through the top.

gomotion100's avatar

gomotion100

Member since 18 Feb, 2014

None one is following gomotion100 yet!

Connect with gomotion100

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies