tarek2's Recent Forum Activity

  • Oh yes I forgot to specify, I am sincerely sorry by my lack of precision, I want to give the speed that increase to all enemies, that every time the speed increases it increases to all enemies, I am sorry, I should have specified it. In fact, I want every time I kill an enemy, the speed increases for each enemy

    No Problem

    That changes everything then, you were correct using a Global Variable:

    Add a Global Variable = EnemySpeed

    Bullet On Hit FamilyEnemy: Action: Add 100 to (Global Variable = EnemySpeed)

    SubEvent: System >>> Pick All "FamilyEnemy": Action set PathFinder MaxSpeed to (Global Variable = EnemySpeed)

    =========================

    Also Every time you Spawn an Enemy as you do on your Event 47

    add an extra action after you create the object set FamilyEnemy PathFinder MaxSpeed to (Global Variable = EnemySpeed)

    ==================

    All of This is assuming that all the Enemies have the same Speed

  • I'm sorry to disturb, I did as it seems you told me, maybe it's not like that but I did as it seems to me to have understood and it doesn't work, I shoot the enemy, I kill a lot of enemies but their speeds don't increase at all not even a little bit, I sincerely hope that maybe with the updated link you can see what's wrong? I despair, I need a lot of help.

    https://www.dropbox.com/s/e96d83r8xy4pbhn/FunShooter%20%2822%29.c3p?dl=0

    On bullet hit enemy

    Are you trying to increase speed to just the enemy that has been hit by the bullet?

    or

    Increase the speed to Every Enemy?

  • Well I fixed that but still having a problem moveing to where I want to in maze and pathfinding don't like to work with tile movement lol o well hrs of testing later I may tiger it out lol Ty

    See if this can Help you

    https://www.dropbox.com/s/3sew819m9e58akh/Maze_TileMovement_PathFinder.c3p?dl=0

  • Thank you very much for helping me and solving my problem, so I will delete my variable, I looked at an example and there is a variable, I was convinced that one was needed, thanks to you now I know that there is not always a need for a variable.

    No Problem mate Glad it helped you

    Yeah is not always necessary the Variables its all depends on the situation.

    But even if you ever need to use Variables for something Else here is a few things to keep in mind:

    Global Variables:

    Are not linked to any Object, doesn't matter how much you change the Global Variables it will not affect any object unless you link the Object with the "Global Variable"

    Example:

    Set "Global Variable" to 100 <<<<< This by itself it will not affect any object or anything on the Game

    But if you do instead

    Set "Global Variable" to 100

    SubEvent: Pick Enemy (Your Enemy): Action Set Enemy "Health" to "Global Variable"

    This will set the Enemy Health to 100 or whichever Value that holds the "Global Variable" on that Moment

    ==========================================

    But there is a better option if you need to do something similar to what we did above they called "Instance Variable"

    "Instance Variable" are linked to the Objects you just need to Pick the right object and modify the Variables

    Example:

    We add an instances Variable "Health" to the FamilyEnemy

    Bullet On Collision with FamilyEnemy: Subtract 100 From "Health"

    You see here automatically c2 knows to which enemy has to subtract 100 from Health as the enemy was picked on the Collision

    But instead, if we do

    Create "Global Variable = Health"

    Bullet On Collision with FamilyEnemy: Subtract 100 From "Global Variable = Health"

    This will not do anything as we just modified the Global Variable but there was no object or anything linked to it

    So in resume for this type of Actions is better to use "Instance Variable" as they are linked to each object

  • Hello, the behavior I enabled by default is patchfinder, I would like to increase the speed of patchfinder and not 8 direction, I'm sorry if I'm confused, And I want to attribute to the enemy family group

    Is the same thing

    Bullet_Hero On Collision with FamilyEnemies:

    set FamilyEnemies PathFinder Max Speed to: Self.Pathfinding.MaxSpeed+100

    This Will increase the speed of the PathFinder for just the FamilyEnemy that Collide with the Bullet

  • Hello, I created a variable called EnnemisSpeed to which I gave as logic each time the player's bullet hits an enemy, it accelerates the enemy's speed, I created a global variable. I don't understand why this doesn't work? I forgot something in the settings???? Thank you in advance for your valuable help.

    https://www.dropbox.com/s/dqtks8w5v5kl7mp/FunShooter%20%2822%29.c3p?dl=0

    On Event 21

    I didn't see how you set the New Speed to the Enemies 8direction MaxSpeed at the moment you just increase the Global Variable "EnnemisSpeed" by 100 or at least I couldn't see it if you do so.

    So it should at least look like this:

    Bullet_Hero On Collision with Enemies:

    set enemies Max Speed to: Self.8Direction.MaxSpeed+100

    You don't need a Global Variable if the speed increase is per Single Enemy

  • Thanks a lot Kyatric for adding the Suggestion Request,

    Have a good day mate :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have the same problem but with different Devices from Windows Pc Running chrome trying to remote Preview to any iPhone Devices I got the same problem as you described "get stuck during Connecting" I had to restart many Times it can get really frustrating, sometimes it starts loading but slow and after long waiting gets stuck it really slows down the development quite a lot making it nearly impossible to carry on with the Game, I just recently tried again with the "Game Jam" and still behaves the same, I thought it would be fixed by now.

    Is it a coincidence that it only happens when you trying to connect ios devices?

    I never tried android so I don't know if behaves the same

    My internet is not the fastest but I download at (2 or 3) MB per second up to 8 MB, I don't think is a problem with the Internet

    There is a request to bring back the C2 Local Preview which works pretty good I never had any problem with it, if you are interested please Vote

    Link:

    https://construct3.ideas.aha.io/ideas/C3-I-618

  • Many days back I couldn't find a way to take back my thumbs up that I added by mistake, the only way I could take it down its by doing a Thumbs down but doing that it registers it as a Thumbs down colour Red which I didn't want either, I just wanted to take back my thumbs up = Neutral like I didn't vote.

    Is this possible?

  • Thanks.

    haha, I cannot get it to work properly. Sounds like an easy thing to do.

    I am trying with an array, to set all the values in a array at index=i For Each Sprite.... with local variables.. also tried while loop.

    I would have guessed that it would be easy when I used numbers, since then I could just try to set it to 1, then step it +1 until no sprites exists with that variable. then assign it. But this was to hard for me on a sunday. :P

    Any more ideas, with event example :)

    https://www.dropbox.com/s/ab9f1q4kardngif/No%20Repeats.capx?dl=0

  • You don't need to check Twice for Collisions (On Collision & Is Overlapping)

    You can do just 3 Conditions Together:

    Bomb is Playing Animation2

    Enemy Is Overlapping Bomb

    Trigger Once While True

    ===========================Action Substract 1 From Enemy Life

  • Hey Tarek2! I just posted a reply with some ideas an a look see if that makes any sense. Keeping track of ID's. UID. that changes. Thank you for a response.

    Hi crucibus Thanks for checking it out mate and for the Recommendations, lest see if something good comes out of all of it as I'm not even sure if this can be done lol as it looks quite Hululuuuu 😜😃 but could be really really useful if it could be done

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