Husui's Forum Posts

  • Any ideas on how to achieve this?

    Sorry for spamming.

  • Hm...i see thats what i wanted alright.

    Thanks.

    But theres a problem...

    I wanted to managed the creation of the platforms through a global variable.

    My idea is to have a global variable that controls the creation of several types of platforms as the player progress through the game.

    Every time the player would reach the end of the layout, the global variable would choose between a certain amount of numbers(1,2,3,4 and so on) and depending on what it picked it would create one instance of the corresponding platform.

    Say it picked 1, it would create one platform with the horizontal sine behaviour at a certain location on the layout.

    If it picked 2, it would create only one instance of another platform with its corresponding behaviour...and so on.

    I´m not sure if im making myself understandable but that´s basically what i was aiming for.

  • I want to create the same object that is alredy running at the top of the layout with the exact same behaviour.

    Currently the one at the top is moving to the left and right, but the one that is created looks like it stretches first to the right and then to the left...I dont know if i am making myself clear...but basically all i want is to be able to create objects that went created have the horizontal sine behaviour...

    Thanks for the answer.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ok thanks alot and sorry im still a bit new to the whole dropbox concept

    Heres the capx.

    https://www.dropbox.com/s/m8pcly3przdw7 ... .capx?dl=0

  • For some reason trying to create an object with a simple behaviour doesnt work.

    On my capx you can see that there´s alredy a platform with the sine behaviour that i want working on top of the screen.

    However when my "code" comes into action to create a new platform object with the same sine behaviour it comes all deformed and i cant seem to understand why.

    Any ideas would be appreciated.

    Thanks alot.

    https://www.dropbox.com/s/5wqwmn6sk8pzg ... aproj?dl=0

  • Hey if you could help me out with something i would be really appreciated.

    I was messing around with the sine behaviour to create a platform that dissapears.

    I managed to make her dissapear but i cant make it so that when it dissapears the jump-through behaviour is disabled.

    This is my "code".

    Really simple:

    Platform- Is visible- Platform- Set Jumpthru enable

    Platform- Is visible(inverted)- Platform- Set Jumpthru disabled.

    Any idea why this doesnt work? its a really simple thing, i´m kinda confused as why it doesnt work...

    Thanks in advance

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

  • 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