GeorgeZaharia's Forum Posts

  • Not sure if Blog post has a edit button yet, but i can't seem to find one, i have to save the content in a new post in a text editor and try my luck, then delete the post and create it again, for now works, but hopefully soon there will be a post edit button similar to the forum posts.

    While the edit Blog button is there when i clicked it i get this error message from my browser

    This page isn’t working www.construct.net redirected you too many times. Try clearing your cookies. ERR_TOO_MANY_REDIRECTS

    I followed chromes instructions on clearing my cookies on the specific site, and after removing all the cookies from Construct.net the error still persists and the Blog Edit button still doesn't work.

    Anyone else experiencing this?

  • You do not have permission to view this post

  • Hi guys, I'm trying to create a new app in C3.

    Can i make a timer for example, every 15 hours, (need to count even offline) or, for example, save the day in a variable and compare every day if the current day is greater than the previous day?

    but how would I do it on the 30th?

    It will click the button and a message will appear, every day I want the message to be changed.

    If anyone can give me an idea or solution, please ...

    I'm Brazilian, sorry for my english xD

    Get Full time UTC and Local

    Is based on w3schools get time and date tutorials

    you can save the values in Global variables or XML or Json or local C3 file even on a server and then compare it to the game current time.

  • can we share great CS tutorial youtube channel links here?

    I want to learn about CS but can't find good tutorial videos

    youtube.com/c/Construct <-- official tutorial channel from scirra. There are plenty others. but if your a beginner you will want to learn from the Construct creators themselves.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • so what I wanna do is displaying many images vertically

    so screen should be scrollable to see many images in one screen without going to another page

    hope to watch some tutorial videos for making general apps but can't find :/

    It can be done in different ways, depends on how you want your app to be made, for example if you want the screen to be big and just have the images already put there you can use this example using scroll to y. If you want to have a loading list that creates objects and you have the layout a fixed size, then you need to pin the listed objects to a container that is dragable using drag and drop. Those are the easiest ways to make a vertical or horizontal scrolling effect. if you want some more advanced stuff there should be plenty in the learn area or in the old Construct 2 tutorial area found still here, might be removed soon, so scout it fast. One good advanced tutorial for sliders with inertia for mobiles is this one.

    The above are my personal picks, but there might be even better and simpler ones. I remember one in Construct 2 as a C2 template coming with the editor itself. Not sure if is still available in C3.

  • I have a sprite called Arrow, with the photogram of an arrow, with the bullet behavior. But when I test my game, the arrow goes down for no reason. I established: Moving Angle: 45 and Angle: 45 when scene starts. The arrow moves to the right, but it drops, like if it had gravity (it is 0 in the properties of the behavior)

    How can I solve this? Is the initial arrow direction (image) influencing on it?

    As mentioned above left is 180 angle of movement and right is 0 angle of movement if the angle of the sprite object is at 0. if you want to face the sprite object that moves towards that direction use set mirrored for left and not mirrored for right.

    The move at angle behavior i think is co-dependent on the objects angle as well if you tick give angle in the behavior, so when you give the object an angle of 45 and a movement angle of 45 totals what the behavior does is moving 45 degrees more from the current sprite angle, which would be 90 that is down. to fix this you need to disable the set angle tick box in the bullet behavior, and use the above 1st mention.

  • Rable

    Name for the effect "Tint"

    Parameter index 0

    Paramater value rgb(255,70,59) needs to be inputed as : 2557059

    Atleast thats how it works on my side in the latest version beta.

    Id use Ashleys syntax though, since is how is meant to be used.

  • Shambrook

    some sort of a dash example is not perfect, but might give you and idea on how to use other behaviors and stuff to create the effect, not sure now if you wanted a dash straight or double jump type.

    but it works same either way, you just need to give it the right Axis (Y or X)

    If your using the bullet behavior, and has a angle set, the moment you mirror the object, if you apply 700 to the speed should work both ways since the bullet behavior only pushes the object towards its current angle.For bullet behavior you don't have to negate the speed, just mirror or un-mirror the object while keeping the same +700 speed on both conditions you have and should work.

  • How can i import audio???

    right click the sound and music folder in project structure and import files, once conversion is done u click import and would be ready to use.

    construct.net/en/make-games/manuals/construct-3/interface/dialogs/import-audio

  • You do not have permission to view this post

  • hi

    i am new here ,came from game maker studio.

    i hope you can help me with something (i am sure it's super noob and silly).

    i accidentally made my ui smaller and i can't find the way to make it default again.

    i tried to default it from settings but it didn't work and i can't find the answer in the manual.

    btw : great program! i am totally pleased with the easy way of doing things in here.

    have you tried resetting the browser zoom level? there is a thing (not sure if is a glitch or just miss using) happening when you are not focused in the editor but on the browser itself, and you use ctrl+wheel it zooms in/out the entire browser causing the editor to look small or big, however if you focus on the editor the event sheet text gets larger or smaller using the same command.

  • dop2000

    You are doing it wrong.. There is no point in checking cpuutilization one million times inside of the loop, because the loop is done in one tick (however long).

    The point of fetching the cpu util during each loop was to get the highest main thread across the entire loop run, without waiting for the above condition to finish. And the whole point of 1 million times check was cause you suggested such a test. lol...

    Anyway .... good debate though we learned a lot didn't we?!

  • dop2000 I agree with what you are saying, but have you actually tried running random() and choose() a million times and comparing them? I have tried it just now on my very low-end android phone (which probably costs about $20 now).

    1,000,000 calculations of round(random(17)) take about 5 seconds.

    1,000,000 calculations of choose(1,2,3...,17) take about 6 seconds.

    I really doubt that igalencar needs to spawn one million explosions at once, and even if he was, the difference in performance of these two math functions would be the least of his worries.

    90% agree on that (since my entire point was about optimization), for sake of argument, im not going to write 100 pages of how C3 calculates things, and what to take in consideration convince yourself

    Here is the 1000.000 loop example , you will also say that the 20% -80% difference in cpu usage has no effect when comes to 14 animations, and i have a argument against that also(which is based on how C3 calculates things, as any html5 engine, however it should not freeze your computer at 14 animations, but would significantly increase your cpu usage causing more load for a spike of a moment added to other cpu utilization ur app does in same time, that might cause ur game to freeze.), but im going to wait for your reply not anticipate it.

    He asked why his animation freezes, and all i said is depends on multiple variations basically but a bit more specific. One of the reason being the way he coded the logic to pick that animation, 2nd being the compression the images he uses have, 3rd being depending on the device, 4th various input add here.

    You still didn't said if the problem was solved or not??? igalencar Also if the problem persists, a screen shot of that call and before and after wait calls or every 2 seconds stuff, will help a lot to identify the problem.

  • dop2000 There is practically no difference in performance between using floor(random(17)) or choose(1,2,3...17).

    You can try them in "Repeat 1000000 times" loop and you'll see that both expression take the same (very little) time to compute.

    the idea of optimizing was mostly meant for mobiles, while on computers you wont see any difference, when it comes to mobiles, you will see there is a big difference in performance especially when you load heavy assets, and have a non-optimize code of logic. Think on mobiles as a 10% of ur computer power. while there are mobile phones that can beat a Pentium 2 or even some low end today's laptops on memory their power is not stable is just fluctuating. So having a clean code would help a lot. As you said, pc performance difference of code from floor to choose is not noticeable, and agree on that, but i think is a difference on mobile, atleast from my past experience (last 4 years). Also keep in mind not everybody has a workstation to build their games on like me and you, their probably running on some normal computer build of <300$. And not everybody has the latest iphone or samsung.

  • Hello everyone.. in my space game i have a obkect that is a explosion animation .. int that object i have 17 diferent animations with about 40 frames each.

    So when i spawn it i do a floor(random(17)) to create a variation of the explosion.

    But when it does the game freezes for a bit.

    Is there a option to preload all animations?

    There are three reasons it might freeze,

    1) Not enough rendering power on your device in which case you want to optimize the frames and lower the quality of them and adjust frame size based on your game design screen ratio. One mistake most people do when they create a game, is forget to optimize their assets, which saves a lot of memory usage, for images i always use services like tinypng, which compresses the images by 80% or more in some cases, for example from a batch of 20 files at 50mb i get back 2/3mb size batch file. Which is insane, and in the same time very important for game memory usage, your game runs faster, higher fps etc.

    2) The 2nd reason it might freeze, is that your load animation event the floor(random(17)) trigger to pick the animation, might run in a loop. Make sure it triggers only once when the bomb explodes, or car explodes or whatever it is. Instead of floor(random(17)) i would use choose(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17) its less computation power for the runtime to calculate, in choose(123...) the runtime picks one item from list 1 time, in floor(random(17)) the runtime has to pick a random number including fractions like 1.111111 ,2.3543677 and then discard the decimal to make it a round fixed number.

    3) I mentioned above resizing your images based on your game design screen ration, for example if you have a game that is running on a 864x480 layout, and your animation is like 32x32px then that should be the frame inside the animation, if you have frames that are 256 x256 and you use C2 to resize them down to 32px that might also cause your freeze, because when the animation loads Construct has to resize all frames in that animation in 1-10 ticks to 32px.