Kyatric's Recent Forum Activity

  • Subscribe to Construct videos now

    As noted, physics behavior only interacts with physics behavior, never with the solid behavior.

    A physics object which its immovable property has been set to yes will act as a ground through which the character cannot "fall".

    Pay attention to the collision polygons of your objects.

    Read the manual article to get more infos on each property as well as the physics tutorial (basic, advanced) to learn more on the general usage of the behavior.

  • I'm afraid the image still doesn't make much sense.

    What you are trying to do it seems is select a specific instance, according to a user input.

    In Construct 2 that's called picking, and is a basic of how events work.

    You can do it by comparing the value of an instance variable, and making sure that each instance of the object type has a unique value.

    Construct 2 is actually it's own sort of programming language I would dare to argue in opposition to the previous commenter.

    But still it has its own ways, and needs a bit of habit to get into.

    In the end, I feel like you are asking the wrong question because of your habit of other programming languages.

    What is it exactly you are trying to achieve in the first place (the general mechanic, not the "construct an object with variable").

    If you're trying to get some selected object to move to a certain position according to a user input, here is an example capx that could do the work.

    Example

    In this example each "Object" instance is create with a unique "ID" instance variable value.

    From there, when the user inputs a number from 0 to 10 (because on start of layout only 10 more instances are created) and click the button, only the instance with the entered ID is selected and its pathfinding behavior set to move it to the EndGoal.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Post the URL to your capx as text we can copy in the URL bar, it will do the job.

    I don't know where you are getting your "rope.capx" from, so not sure how to help on there.

    Basically, spawning on touch, you need your project to have a touch object.

    Use the condition "On any touch" and the action System: Create object.

    In your rope.capx you likely have some initiation for the rope, or events that happen on start of layout that you will want to encapsulate in something like the Function plugin to be able to call that code whenever you want, and pass it the Touch.X and Touch.Y position as the origin from where to spawn the rope.

  • It is basically saving a value into a global variable, and applying this value on start of a layout to a specific object.

    Example

    This is using a textbox object to set the speed, but if you use a slider or something else, it can work the same.

    The mechanic you are asking for is there, now for the interface, it's up to you to check out what's doable.

  • You also don't need the "On A key down" in event 9 to 11 since this condition is already tested line 7 and common to all those sub-events.

    You can post the URL to your capx as text that we will copy in the URL bar, That would likely be easy, because twice the screenshots you post actually fail to focus/display the events of where your issue lies (on the first screenshot, the events about moving/stopped are collapsed instead of being expanded unfortunately).

  • Animation speed is the speed at which a sprite object will swap its frames to make the animation.

    If your bullet has something like a Bullet behavior, you need to use the action Bullet -> Set movement speed to modify its moving speed.

  • You are actually looking to get something like this :

    You check the current value for the current cell inside your array. 1 means the tile is empty, so you possibly want to spawn an enemy into it.

    A cell of value 0 is simply ignored.

    At this point, what AllanR meant, is that here, instead of having strictly 0 and 1 as values, you can have even more values (2, 3, etc...) with each value, meaning what "probabilities" of enemy spawn you are going to have.

    In that case, you would actually check for this value as subevent of the "For each XY" condition and have several "branches" depending on the formula you are looking to apply.

    In that example, with the use of the local variable, I'm simply checking and making it so that if the random value I get for each cell is greater than 7 then I'm spawning an enemy.

    That is in this event as well that you can add a counter of enemy if you want to limit their number.

    About probabilities and using arrays I had done a tutorial on random drop loot that can be relevant to a certain extent. You might want to check it out.

  • In the bottom of the page there is a "Bookmark topic" option that then you can manage in the User Control Panel (Link on top of the page).

    • Post link icon

    OMARGOSH: You actually now can delete your game yourself when editing it.

    No need to ask for it in this thread anymore.

  • If you have encountered an issue that possibly could be a bug, consider posting a bug report following the guidelines.

    I don't have experience with admods ads.

  • Cause as much damages as possible.

    Use the arrow keys to make attacks that destroy the city.

    When the flame bar is full and flashing, press the Space key to launch the devastating Fire attack.

    Game made for the Ludum Dare 33 - Theme: "You are the monster"

    No time for sounds unfortunately.

    Made with Construct 2, GIMP and Inkscape.

    Play the game

    Congratulations to all submitted entries, previous and future.

    Also special kudos to zatyka for maintaining the LD topics and the great "I'm in" videos that are always containing some kind of fun, as well as his entries which are always a good time for me.

  • Cause as much damages as possible.

    Use the arrow keys to make attacks that destroy the city.

    When the flame bar is full and flashing, press the Space key to launch the devastating Fire attack.

    Game made for the Ludum Dare 33 - Theme: "You are the monster"

    No time for sounds unfortunately.

    Made with Construct 2, GIMP and Inkscape.

    Play the game

Kyatric's avatar

Kyatric

Member since 18 Aug, 2010

Twitter
Kyatric has 583,405 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
  • x11
    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