producermark's Recent Forum Activity

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

  • here is a picture of what LittleStain was saying

  • or

    see this tut. maybe it will help

    https://www.scirra.com/tutorials/1441/p ... ext-object

  • LittleStain

    Yes that does it.

    Thanks so much.

    and here is what it looks like for those that like pictures ( like me )

    the %3 triggers every 3 'steps' in this case,

    but if a person wanted it to trigger every 2 steps it would be ~~%2

    every 4 steps ~~%4

    and so on.

  • Hi

    Thanks for looking.

    I want to add 1 to the Global Variable (GV) Difficulty

    when the the Streak is at 3,6,9,12.

    I was trying the below code but it doesn't work.

    If possible please provide an actual example.

    If possible please provide an actual example.

    oh, btw, I know how to do this the 'Neanderthal method' and make an event for each condition

    but I am trying to learn how to improve and simplify my code.

  • Fawk

    Thanks for the answer, please edit your Subject as

    <SOLVED>How do I make overlapping trigger correctly

  • DUTOIT

    That's exactly what I was looking for,

    (an actual example, (as my skill level isn't high enough to understand a few brief sentences ))

    I can work with this.

    Thanks so much.

    and thanks to the other posters as well.

    Much Appreciated.

  • zenox98

    Can you show an example image? ................ please.

    I am trying a Function but I am failing to see how this makes it more efficient,

    maybe I am doing something wrong.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So as you can see from below, I code like a Neanderthal,

    so I am asking how to improve my code and make it more efficient;

    You can see from the image, I want to increase the number of sprites being created as the Difficulty ( global variable) number increases.

    The way I did it works but I know there is a more efficient way to code this,

    I just don't know how,

    please show me an actual example.

    Much and many thanks

    I really appreciated it.

  • looks like Korean

producermark's avatar

producermark

Member since 9 Sep, 2013

None one is following producermark yet!

Trophy Case

  • 11-Year Club
  • x6
    Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

13/44
How to earn trophies