producermark's Forum Posts

  • bump, I thought it was a different question.

    maybe these members can help better

    LittleStain korbaach blackhornet

    Kyatric

  • and your language is ?

  • Edited :

    Here is an image of what he wants ( His rep isn't high enough to post this maybe):

  • I am sure there is a better way, for the master coders out there.....

    but

    try this:

    Sprite = Player

    Sprite2 = rail

    I gave both the solid behavior.

    Player has the drag and drop behavior

    and it seems to work better with the Player having the Platform behaviour too.

    ( all the Platform options 0'd )

    .....with the following code:

    the sprite never penetrates ( never overlaps the rail )

    the order you make the code is important, Event 1 needs to stay at the top

    2 and 3 can be swapped ,

    play with it to see what works best for you.

  • I have had multiple problems with IOS and sound... MULTIPLE !!!!!!!

    . Arrgghhh , IOS and sound !!

    One 'workaround' that worked for me (kinda) was in the Project Properties > View >

    ( in the to set the Preload sounds to No

    and then in the event sheet slowly preload the ones just before they are needed.

    Cumbersome, but proof that Apple aint 'all that' ..... Android is flawless with sounds !

    I mean I like my Ipad, but the sounds issue is just annoying !

  • If Ashley and korbaach say its not a good idea,

    I would NOT do it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You don't say, but I am guessing you want to destroy the object when it is outside of layout?

    Here is one way:

  • There are many ways,

    one way is to 'drop' the sprite after it collides with ....

  • Going invisible does not disable collisions.

    One ( of many) way to solve this problem is to add an instance variable to your sprite.

    Below is an example of a game I have:

    The Instance Variable is PullOut_Overlapping

    so on > Touch > Sprite

    if the PullOut_Overlapping is NOT True then action .... Audio>Play

    so if it is TRUE, them don't play Audio

    you can do a similar action with collisions....

  • Maybe this?

    If you don't see the full image.

    Press Cntl -

    to zoom out.

    This will keep all your objects and it will keep trying to reset the objects until none are overlapping.

    Of course your set positions will need to be appropriate for your game.

  • I believe you need to draw a coat for each animation.

  • [quote:foknkbp7]yeah! thanks for idea : with 2 images it work

    but with 3 or 4 images?

    I am sure there is an other (mabe easier) way to do this but one way is:

    I think I put put all the images in one 'topic' sprite, (each image has a frame number) then I cloned it ( not copied) and put three 'topic' sprites in a row pinned together,

    The center sprite is the MainTopic sprite.

    the left one is the LeftTopic, the right one the RightTopic.

    I then put 'trigger' sprites on each side ( left and right) of the MainTopic sprite ( far enough away for a natural slide effect)

    when the MainTopic > on collision with ( for example) LeftTrigger sprite> change frame number of

    all the topic sprites to appropriate frame> Set Position of MainTopic ( to opposite side of layout)

    For example:

    In an A,B,C slide game,

    The starting frame of MainTopic is A, Then, MainTopic (A) > on collision with LeftTrigger sprite> change LeftTopic frame to A, change MainTopic to B and change RightTopic to C > Set Position of MainTopic to

    (where B just was before the collision)

    also

    in my case when it hit Z, I just had it go back to A, so it looped over and over.

    when MainTopic collides with the trigger sprite you should 'drop' it so the MainTopic sprite return to the center.

    I placed an invisible sprite named MoveToSprite in the middle of the TopicMain , and had the MainTopic sprite > move to object > MoveToSprite > when drag dropped.

    Hope that helps

  • I did something similar using these Sprite behaviors and plugins

    Drag and Drop . make it move horizontal only.

    Pin

    The Plug In : MoveTo