ed159's Forum Posts

  • 6 posts
  • how do you make a point-and-click game? is there a tutorial?

  • I'm trying to stop the menu music I've got, then play another song for the actual level. I've managed to stop the menu music, but for some reason whatever I try the level music won't play. Help.

  • Right click your layout - choose insert new object - choose keyboard..

    It isn't there and I haven't used it on any of the layouts.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You mean something like this?

    On space bar pressed

    pick enemy where distance(player.x,player.y,enemy.x,enemy.y) < 100

    enemy is playing animation "sword"

    > enemy subtract from health 50

    I may seem like a noob, but how can I get the Keyboard object? Is it avaliable on the free version? I think I need it to get "When spacebar is pressed".

  • How do I make an object (e.g the player) only change a variable on another object (e.g health) when the first object is on a specific animation? To be more precise, I'm making a platformer and I want my player to only be able to hurt the enemies when they've got a sword in their hand, and only if they press the spacebar when they're next to the enemy. HELP.

  • first thing to do is to add 2 buttons, 2 texts and the mouse object.

    give one text object the following instance variable(you can add these in the properties menu on the left of the screen). Call the variable Score, this will be a number starting from 0.

    Give the other text object the variable UpgradeCost also starting from 1

    in the event do the follow thing:

    Mouse > On object clicked > left clicked on "first button"[/code:3pt2hple]
    This will perform an action when a user clicked on the button
    
    The action will be:
    [code:3pt2hple]"text with the score variable" > add to > 1 to Score.
    "text with the score variable" > set text > "Score: " &[name of the button].Score [/code:3pt2hple]
    This will add 1 to score every time the button is pressed.
    
    The other button will upgrade the automatic scoring. The event will be:
    [code:3pt2hple]Mouse > On object clicked > left clicked on "second button".
    "text with the upgrade variable" > Compare instance variable > Upgrade equal or larget then "int(self.Upgrade^1.5+1)"[/code:3pt2hple]
    The action will be:
    [code:3pt2hple]"text with the upgrade variable" > add to > 1 to upgrade.
    "text with the upgrade variable" > set text > "Upgrade cost: " & int([name of the 2nd button].Upgrade^1.5 + 1) [/code:3pt2hple]
    This will add 1 to upgrade every time Upgrade has been "upgraded". The price of the upgrade will be raise with the formula 'Upgrade ^ 1,5 + 1'
    
    Thats it. Try change the formula to your own to make the game interesting
    

    how do you add offline earning?

  • 6 posts