Kyatric's Recent Forum Activity

  • Use the system condition "Compare two values"

    Your first value will be something like object1.angle and the other be something like object2.angle.

    You may also want to check out the how do I FAQ for C2 that contains a lot of examples of implementations.

    I think I remember one about the "Diablo" movement that should possibly apply to your current issue.

  • I can't seem to reproduce or understand your issue.

    The file you provide has an object "Player" that will go up and down, bouncing from "wall" and "wall2".

    There is no issue of "changing angle to left and right", the movement is perfectly vertical on my computer.

    You used the Bullet behavior and configured it to bounce from Solid anyway.

    There is not much to do using events there.

  • Providing the actual project could help out answering your question more accurately.

    The bit of code you show in your screenshot is just not enough.

    Also, it means that when you click your button, the global variable "dir" changes to -1.

    All events and actions are read and executed top to bottom.

    Changing the value of dir to 1 in this excerpt is irrelevant.

    Consider checking the "How do I FAQ" for Construct 2 for questions like those, it does contain a lot of implementations of different mechanics already, including how to set changing the directions of characters.

    https://www.construct.net/forum/construct-2/how-do-i-18/how-do-i-frequently-asked-ques-41236

  • Check out as well as the links provided earlier : https://www.scirra.com/arcade/tutorial-games/isometric-projection-6337

    It has links to video explanations and the project can be downloaded.

    The link you post is a Javascript project. Construct is based on JavaScript and when you export it, it is providing Javascript files, but no, it is not easy as copy pasting javascript code randomly found on the internet.

  • No this discount is not available anymore.

    If you encounter browser's crash, it is possibly extensions in your browser which are causing issues. Consider disabling/removing them and see if thing get more stable.

    If there are still issues despite removing the extensions, consider filling a bug report : https://github.com/Scirra/Construct-3-bugs

  • Moved the topic to the "Website issues" forum.

    See this sticky topic for your answer.

  • All those are different tools.

    They are all global to your project, but the main difference is the usage of Local Storage.

    This is there to "save" data in your browser (hard drive) even when you are not executing the game.

    Both the dictionary and global variables are holding values during execution only.

    The global variables are part of the system, so you can create and use them without adding an object to your project.

    Both the Dictionary and Local Storage allow you to assign a value to a "key" (string). You can do some string manipulation if required when you are mentioning the key you are trying to get.

    The global variable's name is fixed and you cannot make use of string manipulation to access it.

    Another difference is the fact using the Local Storage is asynchronous. You use the action to set value in a key and the plugin will trigger an event "on key set" to let you know the value has been "put in place".

    Global variables and dictionaries are instantaneous on this aspect.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you have not used a tool in Construct, the best is to first go through its manual article :

    Project file - construct.net/make-games/manuals/construct-3/project-primitives/files

    AJAX - construct.net/make-games/manuals/construct-3/plugin-reference/ajax

    And then, as can be seen in the how do I FAQ for C3 for example :

    construct.net/forum/construct-3/general-discussion-7/c3-missing-the-new-editors-124916

    You need to populate your dictionary first if you want to get data from it.

    To do so, you may add a json file to your project, and on start of your first layout, you ask, through AJAX, to retrieve its content.

    Once your dictionary is full, dictionary.get will return values as you intend.

    For your character selection screen though, you may want to use an array rather than a dictionary, since you can "apply" a name/image to a numeric value which may be easier to determine/navigate with your swiping interface.

    It makes it easier to add a character, and changing the order is just moving informations around in the original json file.

  • sinfulj's example is close to a good solution.

    It has a few pitfalls though.

    You will want to make sure you are in a 1000 pixels range of your next "iteration".

    So have your instance variable "fallDist" which will be equal to 0, 1, and so on. Its default value should be 0 though.

    Then your condition should be :

    Bullet distance travelled >= [(greater or equal)] to 1000 * (fallDist+1)

    And as action, you do indeed add 1 to fallDist and any other of the actions you want to happen on a regular basis every 1000 pixels.

  • Post your project to let us investigate and see exactly how, according to the way you have setup your project, we can answer your question.

  • In the existing blogs there is also 3 articles related to Construct 2 / WebGL on Raspberry Pi. They are dating now but still, considering reading the last one may prove of worth : construct.net/blogs/ashleys-blog-2/webgl-on-raspberry-pi-easier-than-ever-936

  • As you mentioned, your collision polygon changes each frame of the animation.

    Consider making it as consistent as possible between frames. Try to have it the same shape and surface in order for the collision to be "consistent".

    You also should post your project for investigation, that would makes things easier to see the issue and be able to find out what is exactly going on, in regards to how you did set up your project.

Kyatric's avatar

Kyatric

Member since 18 Aug, 2010

Twitter
Kyatric has 583,402 followers

Connect with Kyatric

Trophy Case

  • 14-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • x15
    Popular Game One of your games has over 1,000 players
  • Famous Game One of your games has over 10,000 players
  • x27
    Coach One of your tutorials has over 1,000 readers
  • x10
    Educator One of your tutorials has over 10,000 readers
  • x2
    Teacher One of your tutorials has over 100,000 readers
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

23/44
How to earn trophies

Blogs