Von Perkele's Recent Forum Activity

  • Hi,

    I have actually been working with this problem and have come up with quite a simple solution to do it with very little code this far. I'm still adding some features though. I will post the capx when it's done...

  • Hi,

    I encountered a problem when creating objects with the "destination out" blend mode (trying to mask the objects behind the created object. Here is an example file:

    dropbox.com/s/5z2oh4a8cgdo830/ImageHide.c3p

    How to fix it so the created hide object makes the object behind it invisible?

  • Hello,

    Do you mean an effect like this:

    dropbox.com/s/1503gc7bpdx3tom/ExpandingImageTrick.c3p

  • You do not have permission to view this post

  • Can you upload a sample project.

  • Yes it seems obvious now. Thanks.

    Another solution I thought was setting the array data to the variable when season = 2, before loading the data.

    However, it is not possible to make the array data itself act like an equation or function?

  • Hi,

    I'm using an array to store numbers. An object will get a number from the array slot that is based on current biome and season of the level. There's also a random number that gets generated at the beginning of every day in the game. There are some seasons that I would like the object to use that randomly generated value instead of a static number. Is it possible to store a "command" in the array slot that will make the object to use that randomly generated variable instead? Sorry if this is confusing.

    This is an example project that tries to illustrate what I want to do:

    dropbox.com/s/4szc39sdcfyvfec/ArrayDataTest.c3p

  • Black hornet pretty muc said it already. Here's the example file anyway:

    dropbox.com/s/il28yi6430o7ws4/NewFlappyBirdIdea.c3p

  • Now the reason you BG is not set to a new position is because you are using the condition X = - 960. That means the condition is only true when X is exactly = -960, which it probably never will be since the X coordinate is changed in "chunks" with the dt function, it does not go through every possible x value.

    So to make your condition work change it to X <= (less or equal) -960.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey,

    First thing that is wrong here is that you are using an image that is size 5000 x 500. That is NEVER how you want design your games.

    You really want to read this:

    construct.net/en/make-games/manuals/construct-3/tips-and-guides/memory-usage

  • I suppose you would have to design the game to have at least two modes for this. You could call them "exploration mode" and "battle mode". Maybe a third "cut scene" mode as well.

    In "exploration mode" the player moves the character(s) in the play field. When the player approaches an enemy the "battle mode" is activated. Manual player controls are then disabled.

    I suppose you need to create a system that randomly sets the positions of enemies and players when "battle mode" is activated. You can create code that finds positions for all the enemy and player characters while checking that these positions are not too close to each other or within or too close to impassable terrain. Then you can use the "go to" behavior to move the sprites to their correct position.

    Then you need to create a turn based battle system. This in theory should not be too hard either. You have to create a "speed" stat for player and enemy characters, and based on that a timer then calculates the action turn order.

    The next part is probably the hard one. You need to create a bit more complex systems for all the "battle mode" menus, different attacks/magics/special abilities/item use etc. Specific actions are performed based on what the player chooses from the menus, after the battle timer has calculated that it is their turn.

    As for the enemies, you probably want to use the advanced random plugin to make them use randomly different attacks. That would probably do for simple basic enemies, but you could also code more advanced attack patterns to different enemies to improve and diversify their behavior.

    I don't have a template, but I don't see how you couldn't do it. It's just a lot of individual small parts that need to be put together one by one.

  • Hey,

    If you want those conditions to only trigger once when true, then you can fix them by adding "trigger once" condition in them.

Von Perkele's avatar

Von Perkele

Member since 26 Mar, 2020

None one is following Von Perkele yet!

Trophy Case

  • 4-Year Club
  • Email Verified

Progress

5/44
How to earn trophies