tarek2's Recent Forum Activity

  • Honestly, I'm totally lost as I'm not sure what are you trying to do or what is the issue as is so many mixes of comments, etc...

    A few tips so they can help you quickly in the future:

    1-Post if possible a minimum project with just the code for those events that are not working so they dont have to go through walls of code.

    2-Explain in sort why is not working.

    3-Explain in sort what is your expected result.

    This way it will make it easier for the user that will try to help you and your issue will resolve much quicker.

  • I designed the "dash" to move to max 64px. But it can teleport the character more.

    Are you saying that your issue is that it travels more than the max 64px?

    One probable reason is that while colliding with the solid wall construct tries to resolve the collisions and it gets pushed up and starts sliding until it reaches the top of that wall.

    If that is the case, one idea is that you could try to stop the dash when colliding with the wall by stopping the tween.

    If that doesn't help it may be a good idea to create a small demo with your issue and share it here so someone else can have a look and help you.

  • I tried to add a reverse flipping

    https://cdn.discordapp.com/attachments/225550155531812865/1101091792222429204/PageFlip4.c3p

    Nice addition!

    There is an issue when you flip it, you see a thin and long line appearing at the BBoxRight of the Book.

  • Really Cool dop2000 good job!

    Looks quite realistic, I love it.

    Looks perfect fit for digital school books)

    (Hiearachy & Mesh) are the best additions they added to construct.

  • > Hmm, I think some of the content links are dead... but if you use the left navigation it works, which takes you here: https://www.construct.net/en/construct-2/manuals/construct-2/system-object-reference/system-expressions

    I ask for your patience for a little longer, but I have an awkward question to ask. Have conditions flipped in construct 2?

    I have some code and I can't help but feel its not working right.

    it runs along the lines of:

    If Global Variable "Apple" is NOT equal to "Hold", then start Timer "Fall".

    The Global Variable "Apple" starts off as equal to "Hold". This means, the above code should not work. However, once I change it to say "Snap", the code should then proc.

    The thing is, I don't know if its a bug or what but right now construct 2 is not working that way. Right now, the variable is "Hold" and it procs but when i flip the script, it does not work.

    I'm not a pro, but again, I can't help but feel its not right.

    Here's a picture to better illustrate.

    https://snipboard.io/Jlftxk.jpg

    I think the issue is with your event 4:

    As long as that condition is true it will keep starting the Timers so it will never trigger because you keep resetting both Timers.

    One way to avoid that is to add to that condition a System "Trigger Once" so it only runs once when is true.

    Also, are you sure that you need that timer to run Regularly? As it will never stop, it will keep triggering every "Your Target" second. Though if you need it that way then is all good, but if not then change it to "Type = Once".

  • Are you spawning the target on the same layer as the Player?

    If not then when you scale the layer you will need to translate the coordinates from Layer to layer, otherways they will not match as the coordinates will be different from layer to layer.

    Or an easier solution if you dont want to translate the coordinates you can spawn the target at the same layer as the player.

    If that is not the issue then it will be better to share a minimum example so someone can have a look.

  • > To simplify yourself use "Timers" instead as they use already dt internally.

    >

    >

    >

    > > On Timer "Increase Speed": 
    > ------------ad 1 to "Paddlespeed"
    > ------------Start Timer "Paddlespeed" for 1.5 sec 
    > 

    I've been looking into timers, but I'm not sure it would fix what I'm after. Question, in that code; does it add 1 to "Paddlespeed" every 1.5 secs? Or, would I end up with 1 and a half?

    Sorry, I misspelt that you should start the timer with the same tag "Increase Speed" not the name of the variable.

    On Timer "Increase Speed": 
    ------------ad 1 to "Paddlespeed"
    ------------Start Timer "Increase Speed" for 1.5 sec 
    

    Yes, it will add 1 to "Paddlespeed" every 1.5 second

    The best and quickest way to find out is to test it:

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

    Test Both the "Every X Seconds" and the "Timers" and see which one you like more is the same, I prefer the Timer just because has that trigger and its easier to visualize that you running a timer because of the icon, but if you prefer "Every X Seconds" then that is a good option too as its the same, it's all by preference.

  • thank you for your effort!

    I have followed your recommendations step by step. and it already does quite a lot of what i want :)

    I don't understand everything yet, but i'm working on it. I'll try to work on it from there. Maybe I'll get back to you with a question or two. If I may.

    thanks for the help so far, appreciate it!

    Np Glad was helpful

    Here is a quick pic of what I meant just in case:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Perfect. It's simple and clear. I can use it. Thank you a lot ^^

    I have a specific need. I want to control the "wait time" of each platform separately. In your example we have a global "wait time".

    Do you know if I can use a variable on the platform object?

    For example, I want to have a variable called "waitTime". And for each platform, I want to configure my wait action using this variable.

    So, if Platform1 "waitTime" is "1", so my wait will be "1" for the Platform1

    Glad it was helpful

    Sure, you can use the instance variable "waitTime"

    Then for the events you will do:

    Instead of "For Each Ordered" use "For Each"

  • Can you make a screenshot of your code so I can try to understand it?

    Visit this link:

    editor.construct.net/r339

    Open the project there and copy the events or just check how is done so you can replicate it in your project.

  • I think to resolve it quicker I make a quick example to see if it helps:

    They start moving with a 1-second delay

    https://www.dropbox.com/s/ry6ueutxvdu7kbo/Move%20Platforms%20Delay.c3p?dl=0

tarek2's avatar

tarek2

Early Adopter

Member since 26 Jan, 2016

Twitter
tarek2 has 12 followers

Trophy Case

  • 8-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • x5
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

15/44
How to earn trophies