hero_bash's Recent Forum Activity

  • Now why haven't I thought of that.. tahnks!

  • Yes.. It has a dynamic light source.

  • Awesome concepts.. looks like it would be fun

  • I found out that Shadow caster doesn't have a built-in event trigger that checks if something is under the shadow. I was thinking of the best way to do something like it, the most efficient and flexible way.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The way I plan to handle obstacles is that after it confirms that the player is withing range, have it check for an 'obstacle' across the line of sight. I will keep it simple and just use the sprite holder(collision box) of the player to be checked and not the actual sprite,and make use of certain stances(stand, crouch,crawl) to be tested against the obstacles and will give a fake partial visibility testing.

    I haven't tried the Line of Sight Behavior - I think I should have before posting this - but I like itt to be flexible so I try to make my own functions as possible.

  • Say, I wanted to make a stealth game for a contest and I wanted to clone the way MGS1 handles FOV for enemies.

    So basically every enemy has a pie-shaped FOV. When the player crosses that, he blows his cover and will be chased down by enemies.

    The problem is how to make that pie shape. If it's 360FOV(basically a circle), it's easy to compute using distance formula, but with a pie(fraction of a circle), I'm not sure how the formula will go. Help?

  • I have this function call in my event-sheet#1 and the actual function definition is in another event-sheet#2 which was already 'included' before the function call.

    I try to add a parameter that if from a private variable of an object. Like:

    AddParameter[ object.value('string') ]

    Call Function

    However it produces an error for me:

    [quote:2lw5y7ll]

    "An unexpected error occurred and the application was terminated

    You may be able to find out more information .. blabla george bush .. attempting to reproduce bug, etc.."

    So yea, I tried finding out what was the problem.

    I tested using 'string' and 'int' constants as parameter. And it worked well, the parameter was brought over and procesed by the function.

    So I believe this could be a bug, however I;m still a little bit on the green side and I'm not very sure.

    Help?

    EDIT:

    Okay so for a second there, I thought I forgot to put a value to the priv vars but I checked and it has values.. So I tried using the private variable value on other commands like MessageBox, seems like it caused the same error.

  • Yea, I also really can't use collision checking because the sprite image might intersect with npc image even though their bases(collision box) haven't collided which would make it weird when the hero is on a lower Y coord but he appears above the npc..

    Thank you for the suggestions, I am now using the for each loop with a family.

  • Yea, I figured it should do that.

    So I just used a for loop to check each and every one of the npc sprite. Inside the loop are the conditions(comparing coords) and the events(placing what behind or in front what).

    Is it practical to do this?

  • So I am making this top-down RPG. For a sprite in the game, there are two objects: (1)the image of the sprite, and (2)the invisible collision box.

    These applies to all sprites in-game, which includes NPC.

    I tried to make it so that when the hero is in front of an npc(since it's top-down, that means he is on a larger Y coordinate), his image is above the image of the npc, and when the hero is behind the npc, his image is then put under the npc sprite.

    I made this by checking the Y coordinates however it only applies to a single NPC - what if there are hundreds of npc sprites on the layout? It seems impractical to check each and every one. And also there is a possible case that I will spawn two of the same npc class on a layout.

    I don't know how the event will go so it could pick up the correct object and since the sprite is actually two objects in itself(image and collBox), I wonder how to check the Y coord of the box and apply it to the correct positioning to the image he is assosciated with.

    Help Please?

  • Thanks for explaining it, though I knew most of it, I think it'll help clear things up for begionners.

  • Will Wine work?

hero_bash's avatar

hero_bash

Member since 25 Apr, 2008

None one is following hero_bash yet!

Connect with hero_bash

Trophy Case

  • 16-Year Club

Progress

16/44
How to earn trophies