theames's Recent Forum Activity

  • Thanks for getting back to me, I'll go with your suggestion above, bit of a pain but the alternative is having all the same enemies in all the same levels which would kinda suck, thanks for replying so quick!

  • I have a family of objects and i create a random one by using

    System -> Create object MyFamilyObject

    I know this works in a way that it will select a random instance in the family

    What I would like to do is filter what it selects from based on an instance variable of the family

    The idea is the family object holds all enemies, and i spawn them randomly but i would like it to just spawn the enemies for level1 on level1 using an instance variable called LevelNumber, hope i am making sense

  • I got it all working now thanks for the info

  • I got it sorry, used an instance variable on the sprite, incremented it each second, so in a way it has it's own timer so when it has been on screen for 3 seconds it drops an egg, thanks

  • I have a bunch of objects, lets say monsters moving on the screen, they are randomly generated every 5 seconds.

    I want each monster to drop say an egg every so often

    i tried using a system every 3 seconds drop an egg, but it means that each instance of a monster drops an egg at exactly the same time

    is there a way to say each instance wait a random amount of time then drop an egg?

  • I thought it might help if I gave you a capx of what I've done:

    dl.dropbox.com/u/73268676/controller.capx

    youll see i have changed the rocket to 2 monsters for now, and made them bigger so i can click them easier for the test, slowed it down too

    if you click on a monster instance and draw a path the monster starts flying off all over the place, i tried setting the dist_to_next back to 0 on the mouse click which helps but still similar results

    basically what im after is you should be able to click on a monster and draw its path, it will follow it BUT if you click on it again while its on that path and draw a new path, the original path should be dtestroyed and it should move to the new path

    I played about with looping the dashes where the rocket variable was the instance you cclicked on and destroying them but then it doesnt move at all, maybe i was destroying the first one straight after it was created, i dunno, I'm really stuck

  • ramones you are a GENIUS!!!

    I have one more favour to as of you and I will leave you in peace I promise!

    I'm really struggling with this which is why I am asking, but I would like to amend your capx so that I have multiple instances of the rocket already on the layout, and I would like them to have a speed set from the start, so they are all moving slowly in a direction when the game starts. I then want to be able to click on a rocket and then draw the path for that rocket

    Problems i have are setting an initial speed causes the rocket to just jump down the page vertically while i am drawing the line

    another problem is when i mouse up after drawing the line, i am then able to drag and drop more lines which get joined on to that one.

    I set this up by simply setting an initial speed on the rocket and changing the line where you spawn an instance of the rocket, i changed it to detect the mouse click over an instance of the rocket

    Any help super appreciated and I will definately be adding you to the credits with massive praise when this is done

  • Thanks for getting back to me this has drive me mad all day so it's good to know cheers

    I started using way points plotting them down by keeping checks on the distance the mouse had moved but it was very inconsistent. Got no idea why. But this one you have sen me seems to do the job so cool and thanks again

  • Also line segments seem to get drawn ahead of the mouse point so it seems like the condition of the distance being greater than 20 doesn't work properly. I would really appreciate anyone helping me get this to work properly

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I would like to make a game where I can draw a line by clicking and dragging the mouse. I would then like a bullet or sprite follow the line. When it gets to the end of the line it should just carry on in the direction it was going.

    I have tried the example on this post:

    scirra.com/forum/how-to-make-bullet-follow-the-line-just-drew_topic53718.html

    But I get the same issue with all of them that it seems erratic in the way it creates line segments. It will always create what seems like multiple lines and lines going off from the original line making the rocket go back and forth etc

    I'm new to this software but have a few years development experience but could really do with some help here

    Thank you

  • R0J0hound I get a lot of problems with your capx, the line you draw seems to create additional segments coming off it so the rocket shoots along the line then keeps going off then back to the main line, know what i mean?

theames's avatar

theames

Member since 19 Sep, 2012

None one is following theames yet!

Connect with theames

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies