lionz's Forum Posts

  • It's too difficult to imagine from the description, I can't really tell what your game is about. It sounds like it's a game where you leave players behind in a dungeon and return to them or something, which I guess persist is ok for, but I can't be sure that's what you're doing. You also only mentioned in a vague way what information is being carried between layouts so it's difficult to tell why it is such a problem. If the game is how I'm imagining it then you won't need to use global as you are travelling between layouts and always return to the other characters. 3 sounds like the better option plus wouldn't you have to 'respawn' a global character anyway based on co-ords assuming that you walk through a door and appear at a door at another location?

  • The info is right there, it's in the appdata folder on C, you can delete it in there to clear save data. There will be an option to clear it from Chrome browser settings, not sure what it is right now, clear cache may work but it could be a different option.

  • Construct does this by default, it loads only the objects required for the current layout.

  • If it's a general resource called 'fuel' then you can just use variables. 'Fuel' is a global variable and if it's transferred to ships you can have further global variables for ship1, ship2, ship3 or use instance variables if the object is important to the game.

  • Check the scale rate of the HUD layer in properties. If it's 0 then it won't scale.

  • Have the right click limited by condition of a variable=0. When you right click set the variable to 1, start a short timer. On timer completed set the variable to 0.

  • Object.Pathfinding.MovingAngle is the direction of movement

  • The direction the enemy is looking is the angle of the enemy object, so if 0 its looking right, if 180 its looking left, although its obvious if you are using 8 direction and its moving in a certain direction, whichever way it is facing is the front of the enemy.

    have you ever played Metal Gear Solid? the cone of view is just a line of vision that starts where the player is facing and expands round in a cone shape. The default cone of view is 360 which is basically a circle around the enemy. If you set it to 45 its like a 45 degree segment of view in front of the enemy, check out this image example from MGS where guards use a cone of vision : upload.wikimedia.org/wikipedia/commons/thumb/f/fd/MGS_Solton_Radar_Shot.svg/266px-MGS_Solton_Radar_Shot.svg.png

  • You would use a spritesheet, probably a png file.

  • I think Nandynho made it, maybe they can help you.

  • Loads of ways to do it. I would do it by having 2 global variables and instance variables on the characters for red/blue which you already have. When they pick red add 1 to red global var, or blue add 1 to blue global var. When character dies check their team, compare if its red then subtract 1 from red global var. If red or blue = 0 then the other team wins. You can also use picked count of players with red/blue instance var and use that to compare if greater than 0. The logic applies to any of those combinations given because it's just counting R v R v B or B v B v R, doesn't really matter.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hiya, instead of moving the sprite in that way I imagine you can use the physics behaviour for everything you need. Add physics behaviour to the object and then use actions such as 'Apply force' to move it in a realistic way. 'Apply impulse' can be used if you wanted to have the ball hit something and send the object flying.

  • On start of layout with condition - system compare two values layoutname = "name of layout".

  • I fixed the picking with a function for both methods, you can see here dropbox.com/scl/fi/mofrgpxx8h50o6br0poxj/removedust.capx

  • Im sorry, but it doesn't seem like you gave me much help here? This waiting/roaming option is what I am trying to do, but how to do it is the problem. I just started messing with Construct a few weeks ago and some of the terminologies is still getting used to. The only "variable form" I am finding is the option to add Instance Variables, but that doesn't seem to be the option I want. the AI currently do roam freely, and each individually responds to the player when it is in range (moves in the players direction). I did just check the "Compare Two Values parameter i used for the "Fly to player when in range" function, but that doesnt seem like the right spot.

    I have to make assumptions as there are no events posted, only a description of the issue that occurred. I also made an assumption on your skill level as you look to have implemented something already and mentioned you are making an MMO so I didn't go into detail with the specific how to, only the general. If you're sure that the picking is correct and it's not a problem with actual implementation then I can't help any more with this, it sounds like a bug. I would have to see a screenshot of the events or a shared C3 file to help debug the issue.

    I have this option right now, currently, my mouse controls are as follow...

    • When left button is CLICKED on AI the player is angled to face the monster.

    • When left button is DOWN the player rotates toward mouse position, and finds path then moves along this path.

    I want my player to be able to use the mouse to move the character, but I also want the mouse to be an interactive control used to target enemy AI as well is pick up loot.

    Potentially you could have the main character object that always rotates toward mouse position for movement then have a visual character object pinned to it that either faces an AI if selected or faces mouse position if AI not selected.