wp2000's Forum Posts

  • Whoops, I accidentally deleted the file. Here is a new link. Again, please insert the dropbox com address:

    /s/cxnd6qk9g054081/construct_test.capx

  • When you say you want objects to "bounce" even if their speed = 0, this surely implies there is a collision and if there's a collision it's extremely easy to use the collision trigger to achieve what you want.

    You're basically going to need to use the On collision to trigger "set bullet speed"&"set bullet angle of motion" actions on the inert object.

    Secondly in my experience C2 can handle far more code than you could possibly throw at it with the free version, crashing after 5 secs implies to me you've either got a recursive loop kicking in or your code is continually spawning objects. Does it go out of memory if you do nothing or is it only if you move? Have you tried debugging it to see where the resources are being used?

    1) I set the player to solid temporarily, set its speed. Then I made the motionless object a bullet, set it to bounce off solids, and set its speed to zero. I run into the object and pass right through it. If I set the bullet angle and speed, won't it fly off into oblivion? I was hoping for it to bounce a distance, slow down, and then stop.

    2) Thank you, that is what I was hoping for. I am planning for several thousand "lines of code." I was worried that a web game would not be able to support it.

    For the second one.. Please upload your example .capx to somewhere to be seen (like dropbox). It's nearly impossible to comment without seeing the original problem. Especially if there's some mistake (or logic fault) at the event code, it's mandatory to see the files and be able to run them on one's own PC.

    Thank you for offering to look at it! I don' have permission to share links, so please insert and replace what's necessary .

    //dropbox link/s/a026ni9nf1nu06q/construct_test.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • First the easy part:

    1) How do I make an object bounce from the player sprite a short distance? I have programmed a bullrush move, and I want enemies to bounce off of him. This works fine if I add the bullet behavior to the enemy, and the enemy speed is >0, but if I want still objects (speed=0) to bounce, the bullet behavior doesn't work at all. Move at an angle is way too abrupt and is more like a teleport.

    Here is the kicker:

    2) This answer will determine whether or not I purchase this program. How efficient is the coding? I am using the free version, obviously, and I have started scripting out a very complicated game. I am close to the 100 event limit, and the player has over 50 instance variables and 50 frames of placeholder animations (colored squares essentially), and there are 30-ish objects on screen. No physics have been enabled. When I run it on IE and my friend runs it on Firefox, if I double the movement speed of the character and zoom around for about 15 seconds, the layout throws up out of memory errors and crashes. If IE crashes, I'm not really that surprised, but I really can't tolerate a game that can't run on Firefox. How many "lines of code" can C2 support before it becomes a lagfest?

    Thanks!