tm2000's Forum Posts

  • Hello people,

    I have browsed the forums and looked at multiple videos and tutorials on trying to get this to work and I don't know why it isn't.. Seems like it should on the amount of different ways i have tried to do it?

    Atm i have this one because its the one that makes sense to me... And should work?

    imgur.com/a/Zvh6v

    New to construct so be easy on me

    Thanks

  • Hey guys,

    I am trying to make a mute music button for my game and have been struggling with it. I have been looking at this tutorial given scirra.com/tutorials/1057/h ... unds-music among a few others. I have the sound working to mute, but how do i have it as a toggle mute.

    Also a few other things i have noticed. Upon clicking anywhere on the screen, my button animations are playing instead of playing on clicking them.

    As well as my music button animation is starting on frame 1 rather than frame 0. Should be going grey upon clicking the music button.

    imgur.com/a/37JCE

    Pretty sure it is something to do with the 'On any touch start'. But i am unsure in what i would do differently for mobile users

    Also I have a jump sound when my character jumps which works fine. But upon dying, leading the player to the submit score page. Anywhere you click the sound is still there. Any suggestions on this fix?

    imgur.com/a/51aJk

    Thanks guys <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" />

  • First, the actions must be outside the groups that will be activated/deactivated.

    Second, you don't disable a layout. You make Groups active or inactive, groups like the "ActiveButtons" on your pic.

    Sorry I am still struggling with this.

    I have my 'Play again' and 'Submit' buttons outside the group, which are in the 'GameOver' layer. I am looking in system etc to find one so that I can have the buttons only activated when layer 'GameOver' is visible. Then deactivated when the layer is Invisible.

    I am guessing i am looking for the wrong wording to do this as fairly new to construct.

    Thanks again

  • Or just add a condition if layer is invisible > set group buttons inactive and vice versa. Thus, when you make layers visible or invisible, the buttons on it automatically become active or inactive.

    I have this atm.. But can't find a group action to disable the layout? Is it called something different

    imgur.com/a/Uef3A

    Tried googling it also but nothing seems to be working from what i have been referring too.

    Thanks

  • Oh, sorry, then you should check if the layer is visible, not the button.

    But as I said, it's better to disable the entire group of events.

    I tried doing this but i dont know how to disable the events if invisible (layer)

    imgur.com/a/NSxk3

    I have this.. Which shows when the player is dead and the button (with the popup menu layer being 'GameOver')

  • You can simply add another condition to your click event:

    Mouse -> Clicked on MenuButton

    (and) MenuButton Is Visible

    Or a better solution would be putting all menu events into a separate group "Menu Events" and disabling this group when it's not needed.

    So ill have hide the buttons as well? I have hidden the popup layer as said above

    Thanks

  • hey guys,

    Pretty newbie question.. But how would i make my menu popup (upon death) be disabled upon clicking play again. I have got it to be invisible then visible when dead. Then clicking play again makes it invisible then. But technically it is still there.

    Basically I want my game over pop up to only be active when the player dies. And upon clicking play again it is disabled. (so you cant click the 'invisible' buttons)

    Thanks

  • I meant add the player is not jumping as a condition of the jump event, so left click will only jump and play the sound once until the player returns from jump.

    Set some kind of variable up and add it as a condition to the player controls, so if the variable is set to something then player controls don't work. Then set it to the expected value when you're on scoreboard to disable controls, change the value back when you are in the main game.

    How would i go about doing this?? Sorry fairly new to construct!

    Thanks

  • Add the condition 'player is not jumping' to the jump event.

    Give the scoreboard layout its own event sheet that doesn't include the player movement events.

    Replace 'is in touch' with 'on touch start'.

    I have done this and it sort of works thanks for that! But you can still slightly hear the sound whilst pressing it? Like the first 0.01 second of it which is weird.. As for sheets.. due to having to import the score over to my leaderboard sheet (which are 2 separate sheets) i had to include the 'Game_Sheet 1' with the leaderboard sheet.

    imgur.com/a/nSiEH

    ((I also tried mute sound too))

    Anyway around this?

    Thanks

  • I have a sound on my jump which i want to play only once on press. Also after that to only be able to be played during the jump when he is on the floor. So you cannot spam the button whilst in mid air and hear the jump sound.

    On top of that is there a way i can get the sound to be disabled on another layout. As going to the scoreboard page (upon death) when you click you still hear the jump sound.

    Pretty sure the trigger once system event is wrong, but i don't know where to put it.

    Having it left button click and space pressed works fine (still can hear it mid air pressing) but with the touch in there you can keep down the key press and it keeps playing the sound.

    imgur.com/a/wsPY5

    Anyway around this?

    Thanks

  • Looks like a bug. The blue outline should be lined up with the red/yellow corner boxes. Have you tried resizing the window? Or maybe just rebooting.

    Nothing I have tried seems to be working. I don't know how to fix it. Any suggestions?

  • I am trying to change the hitbox of my character, i know how to do it but i feel this shouldnt be happening? or am i doing something wrong.. Everytime i click on one of the boxes to move it, the blue box snaps to the top left of the canvas bit.

    imgur.com/a/dGTNn

    Thanks!

  • You need to add "System->Trigger once" to your events 14, 16 and 17.

    Otherwise they are triggered every tick and your animation is constantly restarted from the beginning.

    How would I do this. I just tried adding below below system -> trigger once -> action // player -> set animation to jump (play from beginning) but that doesn't work.

    Tried adding it on the action on the events you said but system -> trigger isn't on the actions bit.

    Sorry fairly new to construct also!

    Thanks!!

  • I have ran into a problem with my jumping and falling animation. For some reason it looks like its only playing one of the frames in my jump and falling animations, when i actually have around 7-8 frames.

    This is what i have so far

    imgur.com/a/8lVjI

    The running animation works fine tho.

    Can't seem to figure out why the animation isn't playing, any suggestions?

    Thanks in advance <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello guys,

    I have looked about and can't seem to find the right guide for it. Knowing me and being new to development I am properly wording it wrong.

    Basically I looking to add a leader board to my game. Say I collect 10 coins, that would then show up on a separate page showing the score. Which then (once the game is live) other people playing that game would see that score and so on.. Generally just a basic online leader board system

    Thanks