GeorgeZaharia's Forum Posts

  • awesome

  • i presume your bullet speed is autoupdated on everytick based on car movement thats why it accelerates as the car... try setting the bullet speed relative to the car movement only on spawning of the bullet or rocket what ever it is. that should fix it.

  • This is not okay, sounds more like a bug. Then it might skip the "Wait 0" action too, lol. There's nothing in the manual or tutorials about skipped actions because of a framerate or anything else.

    No it cant since "wait 0" action is delayed, as the post you shared says, to the end of event sheet and then performs it.

    But when you have 10-20 actions under a condition or is a very cluttered area of conditions and actions in your event sheet and you dont have the "wait 0" between them,and based on your computer performance or browser performance there are some times slow downs of performance.

    Maybe because of browser plugins/framework maybe because of your computers outdated drivers, sometimes we have high usage resources and the browser may slow down even for 1 second or less ... at that moment since C2 system is directly responding to how well our computers can run HTML5 and this sort of issues might happen.

    This issue was also mentioned many times by Ashley and other developers over the years in the forum posts. The skipping is not directly mentioned in the manual but the performance and optimization is, and its suggesting the slow downs might skip 1 action or the actions might not perform as well as they should. And thats why Wait 0 was implemented. At least thats how i see it and understand it so far from testings and the course of C2 development announcements.

    But its not something that C2 can fix. Its more of a Hardware, Software(not only C2 but all dependencies that C2 has), and user usage mix problems.

    Which C2 is developed and patch so often to avoid bad performances like this.

    Another example that is based on performance and the limits of HTML5 are the jitters that always pops up around forum, that are caused by the html5 platform and how well the Math is made in the Core's Engine.

    But this pushes the topic back to the eternal conflict between developers on having to choose from HTML5 or flash. Since immediately flash is/was a bit faster but still has more problems then HTML5 itself.

    In a few more years maybe all this will be behind, with the technologies and the software that is continuously updated. Till then we(the normal inexperienced flock of users) cant do nothing but wait. And submit bug reports or performance issues.

    And then another short note on user usage of software ... most C2 developers tend to not have a clean code... keeping their event sheet all unoptimized and having blank conditions under blank conditions under functions over functions that basically do nothing just delaying the system and then as mentioned above issues pop up.

    And the unoptimization of a code it can bring performance down quite visible in some cases even close to unusability of an app.

    Because 1 condition in blank its another maybe 0.001 % tick delay based on the amount of conditions and actions we have in our event sheet, and on large scale games that 0.001% can get pretty high stacking.

    I'ved seen capx's that where like the above example ... having 10 functions under 10 blank conditions and at the end 1 action that was calling another cluttered useless function that was basically repeating same hierarchy just calling another action or condition ... which did not make sense at all.. and the app at that moment tested was performing really bad maybe 1% of what it should have been.

    So it all comes down to all this things that combined kills performance, on a newly platform called HTML5 that still has years to be developed in order to get perfect and fast enough. Even though, i personal consider it fast enough at this point for what most people use it for on the side of C2.

    I could go on... but im way off-topic and this kind of talking wold be better discussed in open topic then C2 General.

    Im not sure if you still understand now why "action skipping" might happen. And why "wait 0" wont be skipped. But you already shouldve noticed all this by now ... since your not a new C2 user lol ... have a great day all

  • as other developers said, c2 can handle large layouts max layout size is stacked at 100 000 pixels by 100 000 pixels however above 500 sprite objects moving and updating you may encounter fps drops and high cpu/gpu consumptions which on mobile platforms means large battery consumption and sometimes crashes.. on pc however ... on a newer rig you can run a C2 game with around 15,000 sprite objects at a 24 FPS but since not everyone has its rig updated i wold not place more then 1000 active objects in a layout.

    Active meaning ... updating positions changing effects parameters and other stuff.

    if they are just static objects(they dont do nothing just stays there as a bg image or hud elements) then you can add around 2500 of them. so you can have usability above all.

    this info is based on my personal rig

    CPU

    Intel(R) Core(TM) i5-6400 CPU 2.70GHz

    Maximum speed: 2.00 GHz

    Sockets: 1

    Cores: 4

    Logical processors: 4

    Virtualization: Enabled

    L1 cache: 256 KB

    L2 cache: 1.0 MB

    L3 cache: 6.0 MB

    Utilization 3%

    Speed 0.78 GHz

    Up time 8:17:45:30

    Processes 54

    Threads 798

    Handles 25203

    Memory

    8.0 GB

    Speed: 2133 MHz

    Slots used: 1 of 4

    Form factor: DIMM

    Hardware reserved: 47.4 MB

    Available 5.4 GB

    Cached 1.8 GB

    Committed 3.1/9.3 GB

    Paged pool 295 MB

    Non-paged pool 155 MB

    In use 2.6 GB

  • Save as project saves the entire project uncompressed with its entire hierarchy folder

    Save as a single file saves the project under the .capx format which is basically a compressed .zip

    if you change the name of the capx to zip and then extract it you will get same thing as extracting a .capx file or by saving a Save as Project option.

  • Edited:

    here is my solution Capx Example v2 updated

    let me know if you need something else...

    Ashley i found a bug when i try duplicate a button then renaming it and changing the text info ... C2 editor crashes (use original capx in the first post)

    steps to reproduce :

    duplicate button named Add Heart

    change name of the new duplicated button

    change text of the new duplicated info

    on pressing enter after text is changed or clicking the layout so the text its saved C2 Crashes. r228 x64 Win8

    Edited : in my capx now it doesn't do it anymore after it crashed around 3 times... first time it crashed was due to the name length i think... i'll retest and submit to the bug section properly once i pin down the cause. sorry for rushing on reporting and in such a inappropriate topic.

  • 1 bolean or variable on the item

    tripple condition :

    Trigger once

    is bolean X inverted/variable=0

    cash =>500

    action --> subtract 500 from cash

    ------------> set bolean true /set variable to 1

    this should solve it.

    i placed bolean and variable with a / so you can choose the way you want it... it doesnt require both just one of the solutions.

    here is a capx example using mouse and instance bolean

  • So essentially I cant make it where the enemies view is the only way i can be found and i was thinking of making it where i could backstab the enemy sneakily and that would be the only to kill them

    well you can, you basically can reproduce the LOS behavior by event sheet, the code i gave as a example is only measuring the distance to trigger the follow action.

    For "visibility" or cone view effect, you need to calculate the direction the AI is facing... however it might be you are using LOS wrong and thats why it breaks. take a look at the RTS example in the default templates of C2 that might help you understand better the LOS usage.

  • http://imgur.com/GPFfzbe

    :O wow just wow... 110% more efficient ... cant wait to see this at work <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

  • Tic Tac Toe - multiplayer is turned based so ... yes multiplayer turn based games are possible.. i have no clue how C2 server system works... its rather complicated and doesn't make sense to me personally

    but it should work....

  • LOS sometimes has its own mind or breaks.... instead of LOS you can use the system expression compare two variables and calculate the distance as this :

    distance(ai.x,ai.y,target.x,target.y)<100 ---->actionfor AI sprite{set angle towards position (target.x,target.y) } / action2 for AI sprite{ moveforward 2px+(60*dt)............}

    the 100 acts as the visibility... however this has no view cone as los has its automatically 360 view.. so even if you come from behind it... will still follow the player.

  • mahdi71 (better adres you, else GamesCorpStudio shoots at me)

    About your point 2-sheets. Yes you have to pick them. But picking one, combined with the use of a container is so easy.

    https://drive.google.com/open?id=0B1SSu ... XlJV2V5akU

    first of all i want to apologize if you think i have / had something with you ...

    second dont get me wrong im not shouting at anyone ..

    'nor im trying to be arrogant .....

    i actually have fun reading this types of posts and i enjoy seeing this type of problems... i wish somebody else was actually evaluating more of this topics but hey..im just a normal user ...

    if i sounded a bit harsh is because by now you wold think we all have experienced the system C2 uses and its imperfections ... and we all seen this issues... its getting frustrating seeing same problems daily raised in the forum...

    but the way the op was made, it leaves the impression that mahdi71 is ranting without even trying to solve them...

    and yes 99Instances2Go i might have confused you with the op ... you both have red logos... my bad ...

    Edited: i wish i wold'v seen before the post , (btw that looks Insane cool), did haha... about MoModth that basically solve all this topics issues... now i look like a potato hahaha

    i think the problems you raised should be posted in this topic what features you want to see in the future C2?

    this topic was really good. have a good day all.

  • About point1, the ui.

    I wonderd if would build some ui from start, would i encouter the same problems ....

    https://drive.google.com/open?id=0B1SSu ... HNZWUtXSjg

    I did't. Why ? Lets talk.

    im not sure what you trying to achieve with your capx... ? its acting as made... what wold you expect to happen? 9 patch however is not the best usage in this example ... 9 patch ...tiled-background they all have no original points as a normal sprite but more like the text object their original points are called hotspots and can be changed from the settings left side ... but you already know that.

    i still dont understand why you think something is wrong with your capx... it behaves as you made it behave... but maybe your machine is to slow and you visualize or experience something else then what i seen. see my preview's post in this topic about delta time on page 1

    maybe run your capx on your machine and print screen it? or record a video of the problem? it runs perfect here.. (perfect as i compare the events you made and what happens when i run it)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi. i was just wondering how do i punch while walking?. i was trying to make this 2d fighting game, but could not figure out how i punch while walking. Just wondering if you could help me? (dont know how to post my game.)

    you can upload your game to google Drive or Dropbox or scirra arcade and share a link..without the https:// since you dont have enough reputation to post link.

    as for the animations walking and punching if you have the animations set both for walking and punching you can easy trigger them when you press some keys by using the keyboard object. see this for more info Platform example

  • I think C2 is great, but I would like to know how the real pros transfer their favorate set of functions from one project to another? How do the real pros get around pinning different objects in a family-like way as the op is asking. Just when do you have to "wait 0"?

    ctrl+c and ctrl+v? as long as you have the same variables and objects C2 will be able to copy from a project to another the event sheets just by copy pasting... or you can do the harder way where you can import the entire project intro another project by importing the xml files i think ..i read that long time ago.. however i never needed it... since doing that wold create problems you might forget the functions how they are linked and so on.

    as for the wait 0 ... what that means is that the 2nd action on a condition will only be executed after the first is completed... for example

    condition"when something"

    --- > action 1 do this

    --- > wait 0

    --- > action 2 do this other thing

    that means as above after action 1 is executed only then the action 2 will happen..

    that is useful when you want to delete a sprite then create another of the same type... or when you have multiple actions on the same condition and the system might skip or write a bad value or half of a value instead the real one.

    C2 event sheet is read from top to bottom... but sometimes it might skip 1 action or 2 depending on the Delta-Time and Frame independence why im bringing that in?

    because that is how C2 performance is measured... it cannot run faster then the current dt or the formula (60*dt) which should be equal to 1 that is 1 frame per tick which equals with 60 frames per second.

    but that doesn't always equals to 1 because of the platform you run the C2 system ...

    if your system is a bit outdated and has a 0.01 delay on performing some action then dt will skip or fail 1% of the time.

    thats why you see problems like fast objects passing trough solid objects or physics failing...

    however all this issues bringed on this topic can all be avoided just by reading the manual and test and retest until you get it the way you want it to.

    no game engine or software will perform perfect, no matter if its a 10,000 dollar software piece or 1 dollar. it will always have some problems.

    its a matter of understanding how you can work around those problems that makes the software usable.. and with C2 you can work around a lot of issues. but as we progress in future... since in past we cant... more plugins/behaviors/effects are developed to increase the power and usability of C2 and limit the problems some faces.

    However none of the problems that are mentioned in this topic are not solvable... are actually the most easy things to do in C2 no extra special plugin or power needed just the default C2.

    Its a matter of learning a bit C2 and trying to understand how C2 works thats all.