qaisarehman's Forum Posts

  • 11 posts
  • Hi guys!

    im doing a very simple AI, A square object (player) is being followed by B square object (enemy) in a maze like layout!

    Im using the MoveTo behavior from Rex! my events are simple

    System 0.1 sec

    Enemy Square xy Moveto Player Square xy

    im controlling the speed of the enemy with the distance how close and far he is from the player!

    I would like to know how I can introduce obstacles in this case. Moveto have a option, Stop by Solid! which actually stop the enemy from moving! at the moment enemy object is not colliding with the maze wall! it passes through!

    thanks

  • Okay, I'll work on a sample file for you and later I post here =]

    -------------

    qaisarehman

    100% working

    https://dl.dropboxusercontent.com/u/470 ... s/Map.capx

    Amazing! it worked <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy"> Big thanks man! <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile"> took me a while to figure how its working! my code of causing problem! but I figured out in the end!

    thanks again for the help!! <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

  • thanks for the reply! I tried this one! its not calculating the object position correctly and i think its more like radar where the player is always in the center! my player is not in the center!

    what i am using at the moment is

    For Each "obj_flags" system>create minimap_flags on layer HUD at hud_minimap.X+obj_flags.X*hud_minimap.Width/LayoutWidth

    hud_minimap.Y+obj_flags.Y*hud_minimap.Width/LayoutWidth

    But i don't know why For Each is creating objects every frame! it should create only 1 object on mini map for each instance right? and If I move the line of code under "On Start of Layout" it create only once which I want! but the problem with this is! if I hit any flag on the level! it will destroy all the instances on the mini map!

  • hi guys!

    I was following a tutorial on minimap. One thing I notice after debugging, the line of code which use FOR EACH, it keeps spawning the objects, causing the fps to drop! please if anyone can give me some idea how to fix this?

    reference link

    https://www.scirra.com/tutorials/834/basic-mini-map

  • Hello Guys!

    I was going through a video from ArcadED!! Im looking for some help!!

    I have done the basic controls! with its animation! please have a look! the Next thing I want to do is

    auto turn when the car hit the wall/tilemap. If you look at the Original game! the car turns whenever it hit the walls!

    Is it possible in the current event setup?

    Any Ideas will be welcome.

    https://drive.google.com/open?id=0B4tU9 ... zBGMWlxX3c

  • Yes, common issue. In my space shooter prototype in my sig I wanted the store to be an invisible/visible layer, not separate layout so I ran into the same issue.

    The way I got around it was to use groups. If you own the personal edition you can put each layers events into their own group (right click event sheet and select "create group", nest events under it). You can then activate/deactivate the group anytime you change menus and they will be turned off/on.

    If you don't own personal... you might be able to use variables to turn them off and on, but it would be very event costly.

    thanks for the feed back! Yes Actually I figured it out later when I posted here! I also did the groups and activate and deactivating them fix the issue! But Still I have a strange bug! I have my groups likes

    Main Menu (active on start)

    Help Menu, under help i have for different options!

    Option 1 menu

    Option 2 menu

    Exit

    If i move my help menu group on top of Main Menu group! it works properly and fixed the overlapping issue! but if the groups are like I wrote above! it causes that very same over lapping issue! well its fixed just by moving the help menu group on top on all!

  • ello guys!

    I tried to search this but could nt find any thing! Need a Little help! Im making a very simple Menu system!

    Buttons.

    PLAY>Intro layout

    HELP>help menu>more functions

    EXIT >exit browser

    I setup the objects on different layers! and controlling them via visible or invisible! But 1 issue im facing is! when I press the Help button! the help menu pop up! Even the Main menu layer is invisible! I can access the main menu buttons via clicking the same place!!

    like the main menu layer is off! and help menu is on! If the click at the spot where Exit button was! my game exits!!

    Anyone have any idea how can i fix this!?

  • Hi Guys

    Back with another problem!!!

    I have written a small condition. Where my player will throw the Knifes. When the Knife hits my tile map, It will cause a small screen shake, at the moment I have added the Disable Bullet system will wait 1.25 seconds and this Destroy the Knife.

    This creates a feel like Knife is stuck in the wall! Which is fine . I am looking for an effect like the Player throw the Knife, it Hit the Wall and Spin off randomly.

    Please if some one can help with this! thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I fixed it guys! it was the collision shape! my idle and walk animation had different size of collision shapes! it was causing the problem! now its fixed thanks

  • can you elaborate the Animation Event group and send a screenshot of it ..

    hi thanks for the reply! here is the screen short of the full group. I also notice that on the right side the screen shake is very minor! but if player collide with left wall the screen shake is more strong!!

    drive.google.com/open = 0B4tU9OQ9BvVUN2tIYlFsaDlmM3c

    is it something to do with the player collision shape?

    thanks

  • Hi Guys!

    I am very new to construct 2! I am facing a weird issue! I created a player movement by following a tutorial.

    the issue im facing is when I press the left Arrow when im standing next to left wall! my screen start shaking! its like im force my player to go left and he cant!! but when i press right Arrow when im next to right wall! this dont happen! which is perfect! the code for both control are the same!!

    please if some one how can I fix the left control, I will very thank full!

    here is the code screen shot!

    drive.google.com/open = 0B4tU9OQ9BvVUMHJYajFWTGM3SjQ

  • 11 posts