Jump to content
  • Advertisement

JoshuaFraser

Member
  • Content count

    9
  • Joined

  • Last visited

Community Reputation

105 Neutral

About JoshuaFraser

  • Rank
    Newbie

Personal Information

  • Role
    Programmer
  • Interests
    Art
    Business
    Design
    Education
    Programming

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. JoshuaFraser

    Physics for a 2D game

    Use raycasts to check for collision, if you check out Sebastion League on youtube he covers a super solid way of handling a 2d platform controller that won't go through objects even at very high speeds.
  2. JoshuaFraser

    Programmer looking to join a team

    Do you have a portfolio?
  3. Collider and MeshRenderer are components but do not derive from Behaviour like other components do. For both of these components you will need to get the components and set .enabled outside of your foreach loop, Collider col = GetComponent<Collider>(); if(col != null) col.enabled = false; MeshRenderer mr = GetComponent<MeshRenderer>(); if(mr != null) mr.enabled = false; This is the correct way to do this
  4. JoshuaFraser

    Three Basic NPC AI's

    Three Basic NPC AI's by OneShot Tek - Joshua Fraser Written 23/04/2018 Project outline The purpose of this project is to create 3 basic non-player character (npc) ai's. Each ai must exhibit a distinct behaviour model toward other live entities. The ai's must have some level of awareness in terms of environment so they can navigate properly, be aware of other live entities and interact with them. All three ai's must behave in accordance with their designated nature. These behavior natures will be friendly, neutral and hostile. When complete this project will be a neat modular asset package for Unity. Behavior outlines Universal: ⦁ Idle - static/roam ⦁ Identify entity within sense range When an entity is identified act according to nature: Friendly: ⦁ Turn toward entity ⦁ Kindly verbally greet entity ⦁ Face entity until out of range or either party is dead ⦁ If attacked flee until out of sense range ⦁ If attacked verbally ask entity to stop Neutral: ⦁ Don't do anything unless physically touched ⦁ If attacked turn toward entity move within attack range and attack until entity either party is dead ⦁ If entity moves outside attack range get back within attack range and continue attack ⦁ If entity escapes sense range move back to original point of conflict Hostile: ⦁ Turn toward entity ⦁ Harshly verbally greet entity ⦁ Move within attack range and attack entity until either party is dead ⦁ If entity moves outside attack range then get back within range and continue attacking ⦁ If entity escapes sense range move back to original point of conflict AI Parameters constant ⦁ name ⦁ id ⦁ walk speed ⦁ run speed ⦁ max health ⦁ max stamina ⦁ attack value ⦁ kind greeting ⦁ hostile greeting ⦁ neutral greeting ⦁ sense range ⦁ attack range ⦁ spawn point dynamic ⦁ current health ⦁ current stamina ⦁ current state ⦁ current position ⦁ target entity position ⦁ target movement position ⦁ original point of conflict
  5. JoshuaFraser

    2d collision issues

    in different classes i have getters and setters and stuff, not to mention things pointing everywhere and I'm still super novice so I don't think I could present just the logic in question in such a way that it would imply what I'm doing with the rest of my code which I feel is probably pretty necessary for someone to understand the root of my problem, Sorry for being such a noob   Edit: My project is pretty small as far as projects go so it's not heaps of code
  6. JoshuaFraser

    2d collision issues

    It's split between a few files in my project, I think I need someone to take a second to look at the overall project because I don't want to miss something when I'm finding all the logic sections   Edit: if the link is broken please let me know
  7. JoshuaFraser

    2d collision issues

    I know how it works, like my code makes sense, idk why it won't work
  8. Hi guys, I'm having some issues doing 2d collision with small c++/sdl project.   I'll keep it short and simple, I'm using the bounding box method to detect collision. for some reason it is not working :/ I have been revising my code for days and I just can't find the root of the problem, this code is the result of a tutorial I followed, however I do understand most of what is going on.    My collision simply won't work, I'm positive I'm doing it the correct way, I'm not getting any errors either but I can't get my test output to trigger.   For anyone who feels like helping a noob out I will put a link to my code here.   If you do decide to help and let me know where I went wrong, thank you so much in advance  , trust me I have spent so much time and done so much research to find out why my collision detection doesn't work.   Ps: if you notice anything else wrong with my code please let me know also
  9. JoshuaFraser

    Three Basic NPC AI's

    Album for Three Basic NPC AI's
  10. JoshuaFraser

    Three Basic NPC AI's

    Album for Three Basic NPC AI's
  11. JoshuaFraser

    Three Basic NPC AI's

    Album for Three Basic NPC AI's
  12. JoshuaFraser

    Three Basic NPC AI's

    Album for Three Basic NPC AI's
  13. JoshuaFraser

    Three Basic NPC AI's

    Album for Three Basic NPC AI's
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!