Husui's Recent Forum Activity

  • First of all thanks for the capx.

    I understand it alot better now how you managed to do it.

    However i´m now struggling with implementing this to my game.

    This is because the game im trying to game is an infinite-jumper type and so my background Y position is always changing, in this case to the ViewportTop of the active layer.

    Also i would like this set of coins to randomize its x position, i think this part is easier though.

    Thanks anyway.

  • Sorry for the late reply. I have been really busy these days.

    Really appreciate your reply.

    I know this is maybe a bit too much to ask but could you maybe provide me with an example of how to do this.

    I have never used functions before, don´t have a clue how they work.

    Again thanks alot.

    Btw how do you give rep?^^

  • Thank you for your reply. Im off to bed right now as i am extremely tired right now but as soon as i wake up i will test what you said.

    By the way if its not too much to ask did you happen to notice the platforms? i would like to know how to also randomize what type of platforms are created.

    Some of the platforms had specific behaviours to it like being destroyed as soon as the player touches it and being in constant movement usually to the left and right. how could i make it so which type of platform between the ones that break, are in constant movement and are normal is created is also randomized?

    I dont need to know how to create these effects as i alredy know but how to randomize is being a though one for me to figure out.

    I am very appreciated to you. You the man!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • shameless bump

  • hi guys im making an infinite jumper type game and i´m having a bit of issues with randomizing the creation of coins-

    Basically what i wanted was to create groups of coins with a set distance between each of the coins for example in the format of a vertical horizontal line or a square, etc.

    I also want to program it so they are not create where my platforms or other things like boosts alredy are.

    How can this be done?

    An example can be found on this game.

    youtube.com/watch

    I appreciate all the help

  • huh i dont really know how to.

    never used dropbox before i tried to send you a pm but not even that i am allowed to do.

    these restrictions are really annoying to say the least, all i wanted was help...

    sorry gmoney im a really big noob.

  • I think i did it right if so here it is:

    dropbox.com/s/mpt5jk0cp9z1v ... .html?dl=0

  • Thanks for the reply. However i believe the problem lies when i try to use a music and not a sound.

    I tried it again and did exactly the same events that you posted on your examples and it still doesnt work.

    it works if i use a sound like for example the mario jumping sound but when i try to get construct to play a music instead i simply hear nothing.

    I´m really confused...

  • I really need help with this.

    I have tried making this work and i just can´t understand why.

    Im trying to simply make a button that controls the state of the audio.

    Since i cant post capx or links im just gonna write down the "code" that i have inserted.

    I have a very basic sprite with 2 animation frames. In the first frame it´s color is blue and in the second its black.

    I have a single numerical type global variable called sound.

    The music file format was wav. so it was converted just fine.

    Heres what i have "coded":

    Global number Sound= 0

    System - On start of layout - Stop Sprite animation.

    - Play Audio_File looping at volume 0 db( tag "Music")

    Touch - On touched Sprite - Add 1 to Sound.

    System - Sound > 1 - Set Sound to 0.

    System - Sound=0 - Set animation of Sprite to 0

    - Play Audio File looping at volume 0 db( tag "Music")

    System - Sound=1 - Set animation of Sprite to 1

    - Stop "Music".

    End of Code

    However this doesnt work and i simply dont understand why or what im doing wrong.

    Someone help me pls i have been on this problem for hours now

  • Well i tried like 3 times alredy and it simply blocks my links...

    This is quite depressing, i just wanted some help...

    I really dont get all these restrictions...

    Anyways thanks for the reply i guess im just gonna have to figure it on my own...sigh

  • Hello guys. Im very new to Construct 2 and i have been learning how to do alot of things with it. I´m also going to buy the paid version very soon!

    But theres one little thing that i have been struggling alot with.

    I dont know how to save the settings specifically audio.

    Basically what i want to do is to have construct remember the state, either on or off, of the audio that the user selected when he last played the game and accordingly have a certain sprite animation show and of course have the sound play or not.

    I´ve been searching around, saw a ton of videos about localstorage but cant seem to replicate that myself so please if someone could help i would own you my life!

    I tried to post a capx but i cant post urls because i dont have enough reputation...

Husui's avatar

Husui

Member since 13 Sep, 2016

None one is following Husui yet!

Trophy Case

  • 8-Year Club
  • Email Verified

Progress

9/44
How to earn trophies