lionz's Forum Posts

  • Well almost, there isn't supposed to be two different variables because you're setting it then comparing it. You've used two different variables but it should be one.

  • is that a tablet?

  • Open the Demonoire project that comes with Construct and take a look at the walking skeleton or slime logic for movement, that will be useful.

  • Hiya, this is as simple as using the order of actions to pick the instance, so this :

    gun spawn bullet on image point 1

    bullet set angle of motion -45

    gun spawn bullet on image point 2

    bullet set angle of motion 45

    The spawn action allows you to specify image point.

    The set angle picks the instance that was just created.

  • The link doesn't work?

  • meaning what?

  • There is a text input object which allows text entry then you can use the text entered as a name.

  • There is 'system pick a random instance' which will pick a random cube if it is instances of the same object. If you are talking about 3 different objects then you could give them instance variable with an ID, number them. Then use choose(1,2,3) to pick randomly either 1, 2 or 3 and they relate to the object with that number set.

  • It's enemy.tilemovement.gridx. The tile movement has its own grid. If you set a sprite to grid position 0,0 you can work out where the grid is.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Set grid position (animate) and the X,Y are co-ords in the tile grid

  • I am just saying that tile movement move to tile is enough for that kind of game. To pathfind to a tile is the same thing but you end up with the problems you mentioned like sluggish movement or maybe it can't find a path, in my opinion less reliable than the tile movement which is just move to a given tile.

    Yeah pretty much, it grabs the name of the person at array(1) so it's their turn. They are set to active so it's obvious and you can use their actions. If it's an enemy I run their turn through a function, send their name through and they perform attacks or logic based on that. In the actual game world it picks the sprite to move based on the matching name. At the end of the turn I run some clean up logic and then move the next unit up in the list.

  • Kinda depends on the exact gameplay. You say you don't want to build the move mechanic but pathfinding is demonstrating its own problems. When I look at that game you referenced you can click on a tile and move to it. When you use pathfinding to move about you are not really using tile movement, it's one or the other. If you pathfind to a tile this is the same as using move to tile with tile movement. I don't know what these complex movements are for enemies but I'm sure it is doable. As for the turns, my characters have haste which puts them at the top of the list. If they can attack twice you can add them into the array twice, or like you said within the same turn give them 2 actions and track this with a variable.

  • There is no reason to use pathfinding with tile movement for the basic movement. You would use only the tile movement behaviour and move to a tile based on grid ID. When you move you have the choice to animate so the unit walks to that tile.

    Interesting you mention tile based movement in turn based setting, I am making a similar prototype right now. My approach was to add the units into an array for turns and pick the top one as the current turn. Then you move with the actions, chop it from the array and the next person moves up for their turn.

  • Object is overlapping player : show pop up or button

    On button pressed, restart or go to layout

  • Too confusing. Why does your condition say if array value = 0 but you only ever set the array value to 1? itemtext.text is not an index of an array. Not really sure what you're trying to achieve but I'm sure it is simpler than this if it is just using an item.