tarek2's Recent Forum Activity

  • Hi

    I give it a quick go to try and this is my results, I'm not sure if this is what you looking for and I'm sure is not the best but it might help you to give some ideas.

    Note I didn't have much time to test it as I done it quick, so test it properly because you may find some bugs if you need help let me know I will have a look.

    you can customize it a lot more and improve it if you know how.

    (The Middle roads = Horizontal) cars have a preference which is the Right like you asked

    For fast Driving and Animation Change Variety >>>>>>>activate the group >>Extras

    Capx: https://www.dropbox.com/s/sgrr2of0okr2s9e/GTA%20San%20Andreas%20Light%20%29.capx?dl=0

  • 99Instances2Go

    Nice one!!

    I see what you mean now, you are totally right that's the most efficient and elegant way of doing it, I keep forgetting that the "for each" picks all the instances and it should be after the picking, I will keep it in mind for the future

    Thanks a lot for the reminder and the Tips

  • What did i miss ? (not the first and not the last time that i did something wrong)

    lol

    I meant for this >>(Personal, i am not that happy with that 'for each'.)

    If I understood properly you said that you have a problem with the "for each" right? so because I'm not a Pro I'm just a beginner and I may have done something wrong so I would like to correct it if possible, every day we learn better ways to do things in it, that is the fun part.

    so I look up in your capx to learn the correct way of doing it without the "for each", but I see like the spawners don't spawn individually when the player is on the range. maybe I'm wrong but shouldn't each spawner spawn once when the player is in range, basically what the op was asking if I'm not mistaking please correct me if I'm wrong

  • 99Instances2Go

    your capx is not really working like it should without the Each, at last here on my pc?? I didn't get what you mean about the (For each) problem

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The animations you don't really need them it was more to give more juice to the example

    Anyway, The spawner it should be animation Speed 0 my mistake I did it quickly and I forgot to change that I didn't think you will keep the animations Frames lol

    Corrected Capx :

    https://www.dropbox.com/s/jhehtdv82ofmcin/Spawners2.capx?dl=0

  • ismailsawan

    [And I have one more question I make sprite swap object have bullet behavior .... I want this object to stop on mouse crosshere not to going out the screen]

    I'm not sure if I understand

    I suppose that on (mouse crosshere) means that on mouse click object >> Stop object

    Mouse: >> On (Right or Left) clicked "object"

    ACTION: "object " set bullet Enable:>> to Disable

    you can always make a quick drawing picture explaining what you trying to do maybe will be easier for you, with steps 1, 2 etc....

  • ismailsawan

    Jejeje great that you fixed it because I have to admit that I'm completely lost with this post, my head is going like Meeeeh!! in the good way of course

    On start of layout: Is a trigger that is (Triggered or Fires) when the layout begins. Meaning that it Only happens once and it happens always at the start of the game.

    What are Triggers??

    This indicates that the event is triggered. Rather than running once per tick, this event simply runs (or "fires") upon something actually happening. In this case, the event runs when the layout starts. It is never checked any other time. Since triggers run upon an event happening, they aren't checked in top-to-bottom order like other events. This means the ordering of triggers relative to other events is not important (except relative to other triggers of the same type, since triggers still fire top-to-bottom).

    Normally you recognize the triggers by the green arrow and the most of them if not all start by (On)

    Example: On collision, On Jump, On Created, On Destroyed etc....... those are all triggers that run once every time the condition is met.

    Every Thick: is A condition which is always true Any Action you add here it will be updated 1 per thick which is = 60 times a second in most of the Pc, Meaning that is for actions that you need to update continuously none stop,

    You can test it out by yourself really quick all of this, you see this capx we wanna make the car1 follow the car2 continuously and we make this by setting the angle from car1 to car2, but once you run it the first time you will notice that it will not follow the car2 because the set angle action only triggers once and it will happen only once this will only work if the car2 will be not moving, but the car2 its constantly moving so the set angle it will have to keep updating every thick to keep track of the car2 angle, so this will only work if you use the (Every thick)

    So now move the Action from the (Start Of Layout) to the (Every Thick) and you will see that now is working great because the angles are keeping updating every thick, I hope it makes sense for you if not you can ask.

    https://www.dropbox.com/s/xzngq55uaiyqvf3/Follow2.capx?dl=0

    You should check the tutorials (system-conditions) and (How Events Work) to have a better view.

  • Tarek2 great thanks to you

    I do that but I want do something else I want to follow in movement for the first sprite

    I.x ( the first sprite have movement rotation and I want the second sprite to follow this movement ).

    Im not really sure I understand you properly, it sounds like you want to imitate the other sprite movements, if so 99InstancesGo had a really nice example in this post

    If is not the one that you are looking for can you explain more what are you trying to accomplish or a capx will be more helpful

  • Hi everyone

    I have two sprite I want when one of them collision with other ... Follow this sprite in all of motion angels speed ... the contiur & pin behavior didn't do what I want .... how can I do that.

    Thanks .

    Sprite1>> On collision with >> Sprite2 :

    Action: Sprite1 >> set angle to Angle(sprite1.x, sprite1.y, sprite2.x, sprite2.y)

    Capx: https://www.dropbox.com/s/8nvme756ejhwm1p/Follow.capx?dl=0

  • tarek2

    > you say "still could not solve it."

    >

    Sry 4 my bad English

    I meant that I could not solve it until you helped me. Not "still"

    And You right that many bright minds are here! One of them belongs to you

    ~tnks bro

    jeje Lol, that sounds a lot better I thought that you gave up as you couldn't find the right solution, I'm glad that you resolve the problem then.

    Haa I'm just a beginner learning new things every day but Thank you for the compliments thogh

    Take care

  • + 5

tarek2's avatar

tarek2

Early Adopter

Member since 26 Jan, 2016

Twitter
tarek2 has 12 followers

Trophy Case

  • 8-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • x5
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

15/44
How to earn trophies