gomotion100's Forum Posts

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

  • > 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 Construct 3

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

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

  • Use a variable to store the result of choose(...) and then you can subtract the variable from enemy hp and set text to variable.

    Yeah, that's my issue. I don't know how to store the result.

  • Making a damage system where the amount of damage done to an enemy taken shows up in text. When you attack said enemy, the amount of damage done is randomized (16,17,18,19). How do I get the outcome of

    On Left Button clicked on "Hit" (attacking, basically)

    --->Subtract choose(16,17,18,19) from "Enemy_HP"

    to set the text to?

  • Everything was going perfectly fine until this happened (http://i.imgur.com/fFKyfMi.png)

    And then this (http://i.imgur.com/8LWuuEH.png)

    I would appreciate it if anyone could help.

  • ...let me explain this a little better.

    So I'm making my first scrolling proper platformer, and, at a loss of better words to use, I want to put a timer on-screen at all times. Something like in the Mario games, where the timer is stayed put in that one place, at all times, despite the fact that the level scrolls through. How would I achieve this?

  • Searching the forum for typewriter effect and or dialogue should turn up numerous results..

    Okay, thank you.

  • Like, in any RPG, where the text in the text box "loads" one letter after another in a text box.