Remember me
You are here: HomeForum
Welcome, Guest
Username: Password: Remember me

TOPIC: GTA SandField

GTA SandField 2 months 2 weeks ago #3684

  • whinter
  • whinter's Avatar
  • OFFLINE
  • Senior Boarder
  • Hi, I try to make cool games for the community
  • Posts: 71
  • Thank you received: 16
The game features interesting missions, the ending of which depends on your choice. In the game, you will meet characters from Sanford who want to betray the main character. B)
To learn about controls, click the "Help" button. There will be updates in the future, and regarding NPCs, I can say they will be in the next update.

I would like to reveal more characters and make more missions, but the engine is buggy, sometimes models disappear, so if I suddenly reveal characters, it will be in a separate GTA

GTA: www.gamemaker3d.com/player?pid=057857766952

I also want to help those who have problems with the character (T pose), it was a big problem, but I solved it easily. Your code doesn't include an initial animation start; it's only enabled within the loop. However, the spd variable is reset every frame. Because of this, the engine sometimes doesn't have time to assign the first animation, and the character remains in the T-pose. This is visible in the character code.
The easiest fix is ​​to add one block to the beginning of the character code and all animations will play.
<Set var="PlayAnimation" value="Breathe"/>
<Var var="spd" value="0"/>

We leave the SPD as it is and do not change it.
Last Edit: 2 months 2 weeks ago by whinter. Reason: Объяснение т позы
The administrator has disabled public write access.
The following user(s) said Thank You: cyberix3d

GTA SandField 2 months 2 weeks ago #3686

  • whinter
  • whinter's Avatar
  • OFFLINE
  • Senior Boarder
  • Hi, I try to make cool games for the community
  • Posts: 71
  • Thank you received: 16
Yesterday I started working on NPCs. I already have two that walk along the road. When the player touches them, they say a greeting and stop for two seconds.
This code shows how NPCs work.
<Charictar subModelNumber="1.00" fileName="MaxAWDWorkflow.awd" charictar="1" collisionHeight="45" isCollapse="0" guid="A0762750-AA99-3F51-6E43-FA9F456D1A7D" castShadowsEnable="1" x="-2573.06" y="302.07" z="-6399.29" name="roadnpc2" copyDir="" texture="Material51">
    <Set var="PlayAnimation" value="Walk" guid="55C38AB0-701A-7D00-CFA4-FA9F45E57D55"/>
    <Loop guid="5FD96EAF-6958-6708-6135-FAC60ABD0F05">
      <RotateTowards targetObject="npc_magnit2" guid="A7834485-12AC-872F-9AAB-FAC60ABD4D2F"/>
    </Loop>
    <Loop guid="516B3810-E9A4-27D9-6665-FAC60ABDA0CA">
      <Increment var="roadnpc2.x" value="speed2" guid="519A4371-3B91-96B7-CF6A-FAC60ABD102D"/>
    </Loop>
    <LoadSound name="hello2" fileName="whinter/helloeffect2.mp3" guid="D04490E6-8846-8A5B-23A6-FAC60ABDE56D" isCollapse="1"/>
    <Var var="speed2" value="1.00" guid="4322D76D-51BB-C1FB-2D62-FAC60ABD30B4"/>
    <Loop guid="7B451C2C-F224-FC46-3FE0-FAC60ABD0061">
      <IfCollision name="player" guid="55E28151-C519-06CB-EE31-FAC60ABD6BB1">
        <Set var="speed2" value="0" guid="D09B9424-3F19-AD8C-2369-FAC60ABD893A"/>
        <Timeout seconds="2.00" guid="52FA891F-BF87-8F23-1878-FAC60ABDFD99">
          <Set var="speed2" value="1.00" guid="7258324C-F164-2520-01B6-FAC60ABDA575"/>
          <Set value="Walk" var="PlayAnimation" guid="36E2BB9E-A098-91BD-F210-FAC60ABD1CC5"/>
        </Timeout>
        <PlaySound name="hello2" guid="9F6AC4B7-7FEF-888F-E6B7-FAC60ABDBBF9"/>
        <Set value="Breathe" var="PlayAnimation" guid="FCD61A90-1979-8607-E1EF-FAC60ABDBF27"/>
      </IfCollision>
    </Loop>
    <Timeout seconds="60" guid="59C618BC-9449-59F1-3D07-FAC60ABD259A" isCollapse="1">
      <Call funcName="spawn_roadnpc2" guid="FB0D4C30-D837-54D2-FF64-FAC60ABD224B"/>
      <Timeout seconds="0.1" guid="2D0BEA0D-90D6-5B65-0955-FAC60ABD9A29">
        <Remove guid="091638EA-C53C-F935-DFEC-FAC60ABDE163"/>
      </Timeout>
    </Timeout>
    <Animation name="Breathe.2"/>
    <Animation name="Walk.2"/>
    <Animation name="Run.2"/>
  </Charictar>

I'm planning to add new missions soon, they will be called "random events", they will not be related to the storyline
2026-03-18100007.png




2026-03-18100028.png
Last Edit: 2 months 2 weeks ago by whinter.
The administrator has disabled public write access.
The following user(s) said Thank You: cyberix3d
Time to create page: 0.101 seconds