winkr7's Forum Posts

  • Perhaps someone else can look at your code. I just post suggestions.

    yours

    winkr7

  • Create a small physics object at the point where the mouse is clicked and attach it as rotate joint to the object you want to drag. Every tick create an impulse from this created object toward the mouse if the distance is greater than 2 pixels. Have the impulse increase linearly with the distance beyond 2 pixels with a great deal of damping. Be sure to scale the impulse with dt so it works at any tic rate.

    yours

    winkr7

  • Things to try:

    Try saving the earlier version that does work as a project folder instead of single file. Take out any 3rd party addons.

    just suggestions.

    yours

    winkr7

  • I think if you turn off collisions for that solid you are inside it will ignore it. Don't forget to turn them back on again.

    yours

    winkr7

  • One slight addition:

    If you don't have an object (your count is zero) then you can create one with a create object event, then place that in the center.

    yours

    winkr7

  • Yes, I agree. However, in order to get more third-party add-ons it is good to give the public under-the-hood coding access even if only a select few actually use it. There is also the perception that kids all need to learn a standard coding language (though we hear AI is supposed to take over that along with driving your car).

    yours

    winkr7

    I have the same trouble with bread. When I first started buying bread it was like 49 cents a loaf. I am going to have to rethink this whole sandwich thing.

    Because cheese is part of the problem too. I will have to reevaluate bread because it seems to keep rising in price. I don't know if it is the bakers, or transport costs, or just plain greedy bread pan makers.

    yours

    winkr7

  • Mines, if the player pushes the m key it leaves a mine. Of course, you only get a limited number of mines. Maybe a new mine for every tank you shoot.

    You spend hundreds of hours learning and working with any game engine you choose. In the end that is the big expense. If you waste that learning time on an engine that goes out of business or quits doing updates, that is the biggest loss, not the price you pay for the game.

    I support keeping construct in business for years to come mostly for the sunk learning cost.

    yours

    winkr7

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Put all the sprites in a family called canBeClose and test all members of the family for nearest member of the family canBeClose (excluding the family member of canBeClose doing the testing of course). If distance is < how_close_is_near then set the boolean to true in the canBeClose member doing the testing.

    do this every tic or every .03 seconds.

    yours

    winkr7

  • You could create a shadow (invisible sprite) that follows the player about a half second later. Then have the AI look for the shadow rather than the player so it is always looking at where the player was a half second ago.

    You could create several of these with delays etc and have the AI pick the one it goes after at random.

    just some thoughts.

    yours

    winkr7

  • You were around for rex rainbow and how that didn't end well. I am not a good enough programmer to know how to build an inheritance type API you could expand but that seems to work in other development environments (I am looking at Fortnite's ecosystem atm).

    Good luck with your expansions.

    yours

    winkr7

  • Look at the persistent inventory example. That is a place to start.

    yours

    winkr7

  • Do you mean you are using the canvas object while in run time, or is this pasting to the layout? If it is the layout at design time you probably have snap to grid turned on.

    yours

    winkr7

  • You can find closest and farthest sprites--this makes the code simpler if that is what you are after. If you want all the sprites in a certain range you can check which overlap a round fake-sprite centered on the player. Why are you doing the comparison?

    yours

    winkr7