lionz's Forum Posts

  • Pathfinding behaviour : find path to food. On arrived (at food) find path to location B.

  • Read this : construct.net/en/blogs/construct-official-blog-1/remember-not-waste-memory-796

    It describes exactly what you've tried to do and why you shouldn't do it, and how to work towards resolving it.

  • If you mean it is one image, then look at sprite font : construct.net/en/make-games/manuals/construct-3/plugin-reference/sprite-font

    If you mean they are separate frames of an animation then you can use 'set frame'

  • Maybe because you start at level 1 there is no logic to set your lives back to full and it remains at 0 so you always return to the start screen. Without a shared file we can only guess.

  • Ah yes there was a problem with the save logic too, there you go : dropbox.com/s/d46xxrfmrfzawun/GMOBA_edited.c3p

  • Event 3 should not be a sub-event of event 2, it should be its own separate event.

  • Make it global in the object properties.

  • In general each tile in the board game could have a number identifier as an instance variable. Say player starts at 0, you roll a 4, the player position is now 4. You pick the tile that is var=4 and 'MoveTo' its position. If you then roll a 3 the player position is now 7, you pick the tile that is var=7 and 'MoveTo' etc.

    If you return to the starting tile like in any board game where it loops around, you need extra logic to calculate hitting the last number and then starting the remaining steps from 0. And of course the 2 players need separate positions, the position would be a global variable.

  • It's possible because you don't put the trigger condition inside the function. The condition occurs then you call the function based on this being true, and using the object picked in the condition you can also run parameters through the function such as text that could be an instance variable on the object. Think about the part you are going to be reusing, that should be inside the function. If that doesn't help you'll have to post the exact events of what you are trying to do because the previous post was quite vague.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This is referred to in the manual as 'jank' and it mentions that what you're doing with placing the object in the layout and destroying it is the best method :

    "Construct is forced to load the object images at the moment of creation, which can cause a momentary pause in the gameplay, or in extreme cases a constant stuttering (also known as "jank"). In order to avoid this, simply place any objects that will be used by the layout in the layout view. If they are not immediately needed then they can be destroyed in a Start of layout event. They will then not exist when the layout starts, but Construct will still have pre-loaded their images, ensuring that they can later be created at runtime without any jank."

    I see what you are saying though, you have pre-loaded the image and in the next layout the image should not be released from memory so should be instant. Maybe that system action you are using to preload does not do the same thing as destroying an object at the start of layout.

  • You call the function after the event has happened

    It's on tween finished : call function (with the relevant information as parameters)

    Inside the function / on function : do the actions

    So you might want to call the function with the dictionary item as a parameter and then inside the function it runs typewriter text with dictionary.get"param". It's reusable code where you want to run typewriter text with specific text stored as dict when a similar thing happens over and over i.e. tween finished, without making loads of separate events.

  • congrats on being backed! are you working on this as well?

    hehe nooo I have nothing to do with this but I have pledged my support. I like seeing projects like this using Construct! I am currently making a much less impressive game than this! :)

  • Bumping for visibility because kickstarter funding ends soon and some may want to pledge. It's had a late surge and looks like it will be funded yay!

  • How are items added? Usually it would be an array inventory which is global anyway and stores all items. Depends how you are currently adding items to the player.

  • Great I thought it would be something like this :)