Sushin's Recent Forum Activity

  • Uh...GROM, this is not a good example. I assume this is an old topic but there is now a way to swap the mouse cursor with a sprite and unlike this method, there is no visual lag because it actually changes the cursor image.

  • Ah. I remember now. Thank you for the information. =)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The only way I've ever moved objects manually is by using the update function, ie: "Every tick set position to self.x + 1" but I'm in a situation where I really need the object to move based on time (like if you slow down the time scale, the motion will also slow down). This is probably simple but I've never done it. What's the best way?

  • If you choose a random value between numbers 0 and 100, and then choose any value lower than 50, that is effectively a 50% chance that the number is anywhere between 0 and 50 (almost, depending on how rounding works). If you go higher or lower than 50 than it should be a higher or lower chance. It's not a coin flip.

    What you can do is create a variable called "hit chance" and it can change to any number you want. If it is accuracy, and you put it at 70 accuracy, you can use this accuracy variable to check against the random variable, so the code would look like this: "If round(random(0,100)) is less than accuracy" and that will give you a 70% chance to hit, and you can change accuracy whenever you want for a player or whatever.

  • Um...Do compare animation and compare frame, otherwise it will compare any frame of any animation.

    If you're asking how to set an animation, for a platformer if, just do something like this "is platforming left, set animation to running"

    Or you can just do "is left key being held" or something. Use mirror and not mirror to flip the animation over.

  • I'm not really sure what you mean but I believe a Diablo style loot system involves a sizable array with different prefix and suffix values that get attached to each object based on chance, and each of those values do something different to the loot.

    But if you simply want an enemy to drop a weapon on death based on chance, do the event "compare two values" and use something like "round(random(0,100))" and for percentage, make the second value "is less than or equal to 20" and that will commit the action in a 20% chance.

  • <img src="http://puu.sh/2P6ST.png" border="0" />

  • Use compare animation frame and select the frame where his foot hits the ground, then play the sound on that animation frame.

  • Sounds like you're complicating things. Just disable all his movement except for platform jumping or whatever you're using, and make the environment around him move. The easiest way to do that would just be to put everything you want to move in a family and move the family towards the player (and if you want it to go faster or slower at any point it's also quite easy). Then you can build the level however you want.

  • I don't know if you know this but you can set any block of conditions to be an "or" block instead of the default "and" block. Just right click the block (not the event) and click "set as or block" or something and if any of the events in there are true, it will do the action.

  • I actually fixed it. If anyone in the future has the same problem this is how I fixed it:

    <img src="http://puu.sh/2P2TP.png" border="0" />

  • Does anyone know the problem..?

Sushin's avatar

Sushin

Member since 28 Feb, 2013

None one is following Sushin yet!

Connect with Sushin