SputnikCZ's Forum Posts

  • Little nit weird way to solving this small problem, but when it works, it's good!

  • Imo, why you are doing it thru the GLobals? Make a Layout and named it as "Intro". NOT LAYER!!! Layouts work separately and makes the performance of the games much more smoother. After your "Intro" you can simply write "Go to layout -> Game" And thats all. Cheers buddy!

  • Well. Usually you can use some kind of plugin to show "exact date and time" according to the system and IP of the client playing your game. In other way, you have to create a game which will run on your own cloud where you will set everything.

  • Ehm.... "Faster Than Light"?

  • This is what Insta showed me in his capx. Right now I have to set my FTL traveling system right and due I have no such an experience with timers etc I have to find a way how I can fix this problem. Planets are not major problem compare to the FTL. If you want to discuss this, we can thru our PM's.

  • If you are working with multiple Sprites, it's harder. Easier way is set animations and put there single sprites or anims. Then you can create ONE simple Boolean for the sprite. If active - set 1. Simple. Then you can put a command in your sheet = Pick all -> IfActive = 1 -> Write it to the text. Dunno what else you can do except what guys up there told you. I am still trying to improve my skill to get better performance with less code.

  • Rob! You made my day! Damn! I have 2 folders with planets in the Sprite animation. Habitable and Unhabitable. Then those planets animations starts with "Habi_" or "Unhabi_" and after the planet section is the type of planet. And every of those instance variables are set for each planet in the code already (With the easiest way - (Tokenat -> look for "Unhabi", set values, ELSE set values).

  • Well, your logic with the Array is great. For me it is too much time to spend on the thing that is not so necessary for now But still, I'll use it later when I find some more time for the problem I have. Cheers!

  • Insta, will check it tonight. I'm quite busy at the moment. I'll write back asap

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Try to create a condition for the movement. "If enemy move => 5px -> set position -> self.XY"

  • First of all, are you using Debugging? Not the C2 version of Debug but your very own. It helps to create few documents (if you know exactly how to set it first) and then it will tell you what you are looking for. It's easy way to create better performance games. If you have problem on Linux, it can be system problem, not a game problem. Try different Linux versions. I'm using "Zorin", great Ubuntu system.

  • Korbaach, you nailed it. Will download it and check later on ny PC. Great job G!

  • I'm using functions to determine what to do and when. For example:

    Func:

    "ClenUpAC"

    'set everything in the AC to OFF, every boolean etc'

    "StartAC"

    'Now set what should happen with the AC'

    "Debug"

    'only if you are using debugging as I do'

    Simple way and you can call it anytime you need.

  • G, this is good. I'll try to explain on what I'm working. That capx would help a lot.

    Sprite: "Planets_Types"

    Vars: Food_amount, Water_Amount

    Boolean: Habitable

    Animation structure:

    Folder: Habitable

    Animations: Habit_TYPE

    Folder: Unhabitable

    Animations: Unhabit_TYPE

    I setted everything for those vars. So the problem is only this animation. I'm using command "tokenat" to find what planet have "water" or "ice" in the name to set higher amounts of water on it.

    If you need something more, feel free to ask me.

  • Oy lads

    I've got some problem with the code now and even when I was looking for a solution here on the forum, I have no idea how to fix it.

    I created a sprite with animations and now I want from my game to pick randomly 1-3 animations from that sprite and save it in the 3 buttons. I setted few variables for this sprite regarding what it will have but I don't know how to create that command "random" after each turn. Since this command is used for numbers and not the texts so I can't point it like "random(sprite.AnimationName)". Any ideas how to fix this?