Last & Furious (MAGS Nov 2017 entry)

Started by Crimson Wizard, Fri 01/12/2017 17:38:56

Previous topic - Next topic

Crimson Wizard

Quote from: Creamy on Sun 13/10/2019 21:47:53
I can't use objects because they are always drawn on top of the character's dynamic sprite, notwithstanding the baselines.

The normal characters behave the same way (always drawn on top).

This is unexpected. Objects and characters must abide baselines.
There is nothing special in my "AI characters", they are regular characters and will follow same rules.

What baselines do you have set for the paper plane and for objects that must be behind it?


It's working.

Stupidly, I had tried to set baselines for the objects but not for the characters.
I had supposed that the baseline of the characters would have been at their feet if they were working (which doesn't seem to be the case).

Thanks for your patience.


Hi Crimson,

Can you please tell me how to get rid of the opponents? I need them to disappear at a certain point.

I've tried to make them go in another room:
Code: ags

Or to update the race options:
Code: ags
ThisRace.Opponents = 0;

It doesn't crash the game but it doesn't work.

Crimson Wizard

ThisRace.Opponents = 0 will do nothing if you set it during the race, it makes sense only before the race began.

And when race updates all participants are forcedly have their room changed to current one:

in VehicleBase.asc
Code: ags

protected void VehicleBase::SyncCharacter()
    if (this.c.Room != player.Room)

I don't remember all details, but quickly scanning through code shows that each struct has a variable that tells that particular racer or car is active and should be updated.
In Vehicle class this is IsInit variable, and in Racer class this is IsActive variable. Setting these to false should stop game from updating them.
For RaceAI class there seem to be vehicleIndex that must be >=0 , so setting it to -1 might disable the AI.


CW, when are you and JimReed making LnF2?

2 Last
2 Furious

Crimson Wizard

Quote from: Jack on Wed 23/10/2019 22:57:17
CW, when are you and JimReed making LnF2?

This was never in plans.


Thank you again CW.
Clumsily fiddling with your code, I was able to achieve what I had in mind.

Now, it's hopefully the final stretch. The game works fine when I test it in the editor. However it keeps its old behaviours when I compile it:
- it doesn't start in the right room,
- the AI cars use your old sprites,
- your game menu can be accessed with the escape key (which I had disabled).
- even my airegions are not taken into account.

Any life saving tip?

Crimson Wizard

Have you renamed the project directory but did not clean up Compiled folder? That's the only thing that comes to mind.



SMF spam blocked by CleanTalk