boolean's Recent Forum Activity

  • I'm using version R104 of C2. Sample of the bug can be found at:

    dl.dropbox.com/u/20830426/undoHistoryBug.capx

    To reproduce go to "EventSheetA" and copy both the actions (just the actions) from the event from the only condition and paste them into "EventSheetB" into the only condition. You should receive a warning that "localVariableA" does not exist. Now try and undo.

    Instead of the events rolling back to before the past (deleting "set globalVariableA to 2") it actually adds a second one. Sometimes continuing to undo will keep adding new actions, but after a while it will skip back to the events that took place before the copy+paste.

    My previous bug reports were rubbish, but this time I think I finally found a proper bug <img src="smileys/smiley2.gif" border="0" align="middle" />

  • Looks like it down for about 3 days.

    Any word on what happened? Was any data lost or was it simply a server problem? Not sure if Ash checks these forums =)

  • Ah ok. That's how I'm doing it now, I just wasn't sure if there was something in the plugin itself. Cheers!

  • Is there any way to call a function and not use the context of the event calling it?

    I have a function that creates a sprite from a family, but because the event calling the function also uses a sprite from the same family, the function using 'destroy' only applies to the one in context of the original event (instead of all).

    Is there any way to call the function and tell it to ignore the context of the calling event?

  • Yeah this caused me some confusion too. There were no instructions in the email or the license page. The rest of the process was so slick I just assumed I was missing something obvious. I had to spend some time poking around the forums until I figured it out.

    A line or two on the license download page would be nice <img src="smileys/smiley1.gif" border="0" align="middle" />

  • So the problem popped up again today, and Ashely you were exactly right. Opening the layout made the button become available. Once the layout had been opened I could close it, close C2, open C2 back up (with no layout open) and the button would still be there.

    Sorry about the bad bug report <img src="smileys/smiley9.gif" border="0" align="middle" />

  • Oh very sneaky! Ha, that would certainly work <img src="smileys/smiley1.gif" border="0" align="middle" />

  • So as mentioned I tried GenkiGenga's suggestion, using speed instead of distance, and it seems to work pretty well. I won't upload the whole capx as this seems like a pretty simple exercise, but here are the events if anyone is interested:

    <img src="http://i.imgur.com/QSddo.png" border="0" />

    (Oddly, "speed < 1" works, but the "On Stop" event does not.)

    Is there any other ways anyone might be aware of?

  • It's that I don't know how long to wait for. If I have an enemy that is supposed to be heavy, they might only get bumped back a few pixels, but another regular enemy might be bumped back many pixels. In this case, do I set the wait time to be low or high? I could make it an instance variable, but it's going to be hard to test the exact amount of time to wait for every enemy.

    This also gets tricky if another event occurs like the enemy hits some scenery. He gets pushed back, but instead of travelling the full distance (a 1.5 second wait), he hits some scenery and, with the event now taking place at 0.5 seconds, rockets forward for one second while the wait timer ticks down.

    I'm playing about with GenkiGenga's suggestion right now and so far it seems to be working well. I'm going to test it a little more then I'll post a screenshot of the event sheet.

  • You could also set it back to normal when they hit the ground or when they have gone a certain distance.

    I was thinking of something similar to this today. I'm wondering if you could set the max speed to 350, apply the x vector, then maybe do a "if movement speed is < 10, set to max speed 35'. That might work.

    I'll give it a try and see how it goes.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • More questions :)

    This seems like it should be a really simple task, but I can't quite get my head around it. I am shooting a bullet at the enemy (with platform behaviour) and on collision I am applying 2000 to Vector X (to simulate the enemy being bumped backwards). At first I found this wasn't working at all, but then I noticed that Max Speed was set to 35. Once I set the max speed to 350 the enemy would be bumped back a much better looking distance and continue on their path.

    The problem is, I don't want my enemy at the max speed of 350 :)

    If I try to set the speed to 350, change the vector x to 2000, then change back to 35, it all happens too fast and the enemy does not move. If I try to set some sort of wait event, this could have unpredictable results.

    What would be a smart way of saying "Take the enemies max speed, change it to 350, apply a vector x, then when [?], change back to 35". The tricky part is the [?]. I don't quite know how to determine when to switch back to the max speed of 35. As I said, it seems simple but got confusing fast <img src="smileys/smiley12.gif" border="0" align="middle" />

  • It could be. Maybe when the preview crashed, it lost whatever was being saved as the last opened layout? The strange thing was both times it happened, nothing specific seemed to fix it, I was just fiddling about in the events and suddenly it started working again. That's what made me think something was timing out in the background.

    If nobody has reported anything like this before, I'll just keep an eye on it for now and see if I can spot what caused it. If it happens again I'll try keeping a layout open, close C2, then open it again.

    Thanks Ashley.

boolean's avatar

boolean

Member since 22 Aug, 2012

None one is following boolean yet!

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies