Good points Everade :). round() works as well. If you check the debugger, you can see the variable being created, would not be an integer. I've made the same mistake. Because the random() for calling an Animation Frame automatically sets it to an integer, because animation frames can only be integers. But, it's not the same with a Number Variable. You'd also get the best functionality with the paid version. Unlocking Family Objects is a game changer. I haven't looked at the .c3p yet, just booting up for the day.
EDITS: When I first stated with Construct. I watched a bunch of tutorials for Construct 3, and prototyped about a dozen simple games. Then went on to create my own projects, and read through the Documentation.
I've since read through most of the Documentation a few times(the entire thing once), and make constant reference to it. Like any skill. The more hours, and practice you put in, the more you learn, the better you get.
What would take me a week to figure out several months ago, now takes me an hour. Education, experimentation, and fixing any issues over time. Will go a long way to increasing your development skills.
In the beginning I would start off super simple. Then over time learned about Families, Parent/Child Objects, Containers, etc. Then, went back and minimized the amount of blocks being used. Adding in Functions for areas that were repeating over and over. And, now use Families for just about every type of enemy/object, unless it's a really unique enemy/object. It makes changing states/animations super easy using variables, and also using a single list of behavior/variables over an entire family is much easier.
You can also isolate objects from a family, by checking if it matches or does not match "FamilyNameHere.ObjectNameType". Then, learn about passing through UID of family objects, to even further isolate objects, if needed within functions. It takes time. The more you learn through practice, the better you get. I'd suggest visiting YouTube, and find some good devs who teach on there. I could point you in the direction of a few who have helped me through their videos, mbuckenmeyer90. Develop a bunch of different style games alongside tutorials, then go on to take those skills into your own project.
Like any skill. Playing guitar, or a game like golf, Chess, etc, it takes time. Once you get a base set of skills. Then jump in and learn through experimenting with what you know in your own larger project. And, expand on it over time as you learn more and more. It's what has worked for me. And, I'm sure many other developers. With any type of application.