tarek2's Recent Forum Activity

  • I just downloaded your file and it didn't work on mine. That's really weird.

    The code provided by Sebastian works as is intended for me >>>>Stops when you touch & toggles on/of

    which part are you referring that doesn't work for you the( Stop or the Resume)?

    as you mention in your original post this

    [quote:158v8sm6]This code doesn't work. I am not sure why when the boolean is toggled that the pathfinding doesn't stop / resume.

    If you are referring to "Resume" the movement to the Path after the Player stops then the problem is because you need to recalculate a new Path after you stop the Pathfinder

    see if this works for you

    https://www.dropbox.com/s/jd6n8ozxcxafif6/1-PathFinder%20Stop%26Resum.capx?dl=0

  • Try Construct 3

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

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

    Once any of your events meet the conditions will be always true unless it becomes false, to avoid this as you wanna change the animations once you will need to an extra condition "Trigger once While true" that will make the event trigger once only also set the animation loop to no on the sprite animation properties

    Another thing the four first events is the same thing repeated four times you could do something like

    -Health is <= 4

    -Add One more condition: Health is => 1

    -Trigger once while true

    >>>>>>>>>>>>>>>>>>>>>>>>Then your Actions

    Else

    Health is <= 0 :

    -Trigger once while true:>>>>>>> your actions + set Health to = 0

  • [quote:rdlyqaic]This kind of report is really confusing. I could probably fix two other bugs in the time it just takes to read this much information, watch the videos, and figure out exactly which problem you're talking about

    Hmm confused? the thread Points to "High Cpu" across the whole page like 100 times, and if you go straight to the "Observed "Result" & "Expected Result" It gives the short version of the Problem

    Technically the videos it was to help you to avoid ("read this much information")

    Anyway thanks for checking it

    [quote:rdlyqaic](since it appears to have changed at some point during this thread).

    Nothing at all has been changed on this thread just the Title from "App Memory Leak" to "High CPU (App) In All The iphones"

    Thread started with a

    Capx and Video of >>Coccon Canvas+ : >>>but since is not supported anymore and you asked if the problem happens in different platforms then the Thread ended up with a

    Video of >>> PhoneGap: showing the "High Cpu" swell

    [quote:rdlyqaic]Can you file a new bug and basically try to keep it as concise as possible? Stick to officially supported platforms only, a minimal repro project, clear steps to follow, and the expected and observed result.

    Sure no problem I will make sure is short the next Time, I apologize

    [quote:rdlyqaic]I'd point out that the CPU usage in Construct is a timer-based estimate. It's not very accurate for mobile devices because of the way they throttle to save power. I investigated another "high CPU" iOS bug and it just turned out to be this. In maximum performance mode, it might be using something like 9% CPU - hardly any. However if the OS determines it's not that busy, it might throttle down the CPU to be 10x slower, in order to save battery life. However now a timer-based CPU usage measurement indicates 90% CPU! That's a misleading number. Due to this power throttling, you can see a counter-intuitive effect where as you create more objects and add more CPU work, the measured CPU usage actually drops as it kicks up in to a higher performance mode and completes the same work quicker.

    Cool Thanks very much for your explanation, I got now a good understanding on how Construct works, I thought (timer-based estimate. It's not very accurate) it applied to when we test projects over Wifi only

    so it looks like this is not the case then, Even exported Capx and installed on the phones there is no way to test the real performance within Construct, I understand now

    [quote:rdlyqaic]So I'd guess any "high CPU on mobile" bugs probably just come down to this. It'd be best to use another app to measure the real CPU usage on the system if possible.

    Thanks for the suggestion I will try that

    Since "Construct is a timer-based estimate. It's not very accurate for mobile devices" then I think you can close this bug as there is nothing more we can discuss at the moment, I will have to look with different "Cpu Checker" and if I find anything I will open a new bug like you said

    Thanks very much for your Time

  • [quote:9jd9nfxy]jook00 What you mean with has been discontinued??

    tarek2 Construct no longer supports Canvas+ according to this message from Ashley in 2015. You'll also notice this as Construct 3 to Cocoon with Canvas+ will render a game with scaling and sound issues. However, I've been using Canvas+ on all my games and didn't even know it was discontinued until now.

    Ashley's message on no canvas+ support:

    https://www.scirra.com/blog/154/evolving-construct-2s-export-options

    Scaling issue seen here:

    https://shatter-box.com/knowledgebase/build-construct-3-games-cocoon/

    Haah ok I didn't know it was discontinued either haha, thanks for the links that cleared up many questions I had.

    I'm glad that I found out those things before will be to late.

  • Hi Ashley

    [quote:3a1hq21b]The original report mentions a memory leak

    I thought that could be the problem but is true I changed the Tittle to more appropriate one "High CPU (App) In All The iphones"

    [quote:3a1hq21b]we haven't officially supported Canvas+ for years.

    ok thanks, I didn't know that now makes more sense the Toby statement, I'm not sure why you would stop support on canvas+ obiosly you must have your reasons but for what I saw is super fast and useful platform to use, I could see how anyone using construct will benefit from Canvas+ as there is a huge gap between WebView and canvas I mean big you cant compare them, webview runs all the Games at 90%Cpu Extra super slow than a Game exported With Canvas, you can see the diference with any iphone from 7 and all the iphones that came after

    [quote:3a1hq21b]Does the memory leak occur using PhoneGap Build

    Yes it does at least for me,

    Any Game exported by "PhoneGap" or "Coccon WebView" Runs at 95% Cpu in all the iPhones, doesn't matter if is simple Game with not many events or if is more advanced Game with much more events

    Plus another Hint to see that something is going on is how can the same Game run at 95%Cpu on an Iphone6 and then Runs exactly at 95%Cpu on an iphone (8 or X) which are way faster and more advanced than iphone6.

    Shouldn't be run at much much lower CPU at least on the latest Phones?? so here you have a clear evidence that is something affecting the Cpu pushing the phones to the limits doesn't matter how fast is the phone, it looks like doesn't matter how advanced the technology is advancing on phones doesn't help to construct it will always give the same speed and Performance.

    Here is the Video Test was done on (iPhone 8 Plus) Exported with PhoneGap,

    Iphone X gives the same performance as is exactly the same chip

    Video: I used the same Capx linked in my first post

    https://www.dropbox.com/s/luun7tld3y9c9 ... t.mp4?dl=0

    Are these things be fixed in the New Run Time??

  • Euma

    Enemies: boy, girl, bird On Collision With Main

    Second Condition: Main is SpeedPlus <<<<<Inverted to become false

    That it should make the Character Immune while is on speed PowerUp

    Or you can create another Boolean if you wish example "Immune" and do the same thing as above

    Another thing you can shorten your events a lot by grouping the repeated events like Main on collision with enemies you can put all your enemies if you can use "Families" and do something like Main on collision with Familie >>> do your Actions

    if you cannot use Families you can try swell to put all the enemies in one sprite and just change the animations

    and do the same as above

    Main on collision with Sprite >>>> do your staff

    And many more things you can shorten apart from collisions Events if you look carefully

  • For the last 4 Months, I have been stragling with this issue I been testing to death untill I can handle it any more, there is nothing you can do or at last, nothing worked for me.

    There is a huge gap between Webview and Canvas+

    The Games that run smoothly at 7% Cpu on canvas run at 98% Cpu on Webview with the stutters all the time,

    Here is what I noticed with webview

    -The code gets executed much much slower with delays

    -stutters

    -Any minimum loop will break the Game and make the stutters unplayable

    -it cannot handle loops like the "For Each" , "For" ," While" or anything that needs to Pick by looping a little bit

    -The Gameplay feels slow much boring

    Canvas+

    -Amazingly fast, I was surprised with speed and the super low Cpu and steady Fps

    -but has a critical bug I reported here

    https://www.scirra.com/forum/app-memory-leak-closing-or-changing-layout_t201156

    Now the Problem becomes bigger because if you wanna use Canvas+ Not all the phones can handle it I don't know why

    Canvas+ works great on iPhone ("7" & "8" & "X") including using any loops

    but it doesn't work on iPhone 6 or less, the stutters are very noticeable making the Game unplayable

    So hence I have the big battle to choose canvas+ and loss the big market of iPhone 6 and less, which is huge market probably still half of the users of the Apple or choose Webview slow with stutters Plus removing crucial elements of the Game like the Pathfinder which it cannot handle the Webview on Iphone6 or less

    I'm so angry right not because I lost 4 full months with this and I didn't find any solution like you said on wifi works everything good and smooth but when you export it is a nightmare

    PhoneGap is out of the equation

    ===========================================

    [quote:1koqt2fi]Since Canvas+ has been discontinued

    jook00 What you mean with has been discontinued??

  • piccolodmq Nothing to be a shame we all been there we did a lot of mistakes swell and we still keep doing till today, the fact that you still keep learning and working on it is big accomplishment keep it up.

    On Collision Event normally Picks the objects involved in the collisions individually that's why you didn't need the extra for Each on that situation, any Actions you apply to the KopaTropa on events like this c2 will pick the rights ones individually and apply those Actions to the Right Kopas

    I love the Tittle by the way "Immortal Enemies"

  • piccolodmq

    "Immortal Enemies" lol I'm not surprised they should be Titans

    Did you realize that you have three "For Each" in arrow and in a sub-events? and that you don't need any of them

    Plus the trigger once in event 43 is making you a big mess there combined with the Waits

    Remove all the "For Each" three of them

    Set event 41 as the top event

    --SubEvent: Kopatropa Health = 1 >>>> your Actions

    --Else Health <= 0 >>>>>>>>>your Actions

    Also, I would remove all the waits, replace them with Timers

    try and see how it goes

  • ivall

    Is hard to say without seeing your project as it should work, but the first thing I will look will be if the Layout "gra" has linked properly to the Event sheet where you have the code which is "gra" Event Sheet

    -Click on the Layout "gra"

    -At the left in the Properties Panel like you show in your first picture check where it says "Event Sheet" it should be >>> gra

    -if it doesn't show gra just change it to gra and it should work

    -but if you have "gra" already and is not working then the problem it should be somewhere else, if you post a minimum capx someone can have look and fix it much quicker

  • tarek2

    Ah great! I tried it how you explained and it works perfectly now! Thank you very much

    Your Welcome

  • RioLuk

    Use Overlap for that much better

    -sprBullet : Overlaps sprEnemy

    -sprEnemy: pick top instance

    -Trigger once while True

    Action :sprEnemy: destroy

    The 3 conditions in the same Event

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