Jump to content
A 2021 backup has been restored. Forums are closed and work in progress. Join our Discord server for more updates! ×
SoaH City Message Board

First of many help threads


mad.array

Recommended Posts

Hi guys (and gals if applicable). I've recently started using the Worlds Engine and have been playing around with various things to try and figure out how to get a fangame going. I've got the Crabmeat to fire projectiles using a little bit of maths, have added a ring deduction to the super sonic state and implemented life ups for people who get to 100, 200 and 500 rings. There are a couple of things I was hoping someone would be able to help me with though.

1) I've been trying to implement a motobug badnik that travels up and down slopes as subtle as the minor dips and hills in GHZ. I've seen a decent working motobug in Blazes GHZ SAGE demo but I haven't been able to figure out how it's done. The sensor system confuddles me so I haven't attempted that yet. I did attempt to try and govern Y movement by checking if the motobug is colliding with a backdrop or platform object. The problem is this only covers travelling uphill as you can't negate the collision filter. Either way the uphill movement looks jerky when the badnik moves.

2) I've added all of the grass into the level_detail group, this works in making sonic run smoothly over it rather than bobbing and rotating over the terrain. I've also moved it to layer 5 as I liked seeing sonics trainers (sorry, sneakers) behind the rough grass. The problem with this is that when he jumps up to a platform, the grass remains in front of him and that obviously looks a little odd.

If anybody could help me out with either of these issues it would be much appreciated.

Thanks.

(P.S. Sorry Appo, it looks like there are going to be two of us vying for the domination of the thread:tgrin: )

Link to comment
Share on other sites

Blast, my plan is ruined :) well maybe this way we can work together and get answers it's been a while scince i used MMF and it was MMF 1.5 back in the day, so i thought i'd ease back in to the spirit of things by reverse engineering the worlds engine (not as easy as i thought) but anyways good luck in your game :), oh and btw if you check a few of my help threads you might find something useful, in the fangaming assistance Nitemare made a nice magnatized ring movement for me.

Link to comment
Share on other sites

I think i may be able to help you with your second problem, however the grass tufts are active objects for them to be able to change layer, although you can robably use an active background object i don't know if that'll save on memory but anyways this is what i came up with

gras-1.jpg

i hope this helps in some way :)

Link to comment
Share on other sites

How so? I'm just asking alot of questions because i haven't used MMF for a few years because i was at uni and have started to get some motivation to start using it again (plus i'm not a harcore programmer, i did Games Art at uni) as for mad.array i'd just thought i'd try and help him :S

Link to comment
Share on other sites

Getting a motobug to follow slopes is as easy as these two simple events:

_____Condition: Motobug is overlapping a backdrop

__________Action: Set Y position to Y (motobug) - 1

_____Condition: Motobug is overlapping a backdrop (negated)

__________Action: Set Y position to Y (motobug) + 1

Then program the rest of the AI to your liking. It will follow slopes perfectly now. Keep in mind that for efficiency, of course, the motobug should always be deactivated if the player isn't near it.

Link to comment
Share on other sites

Thanks Rael, my intentions are benign when i ask for help, i'm not here to start conspiracies or annoy people, and i greatly appreciate the help that i have have recived, why would i make 2 accounts?, anyways i won't say anymore as i don't want to fill up mad.array's thread with this

Link to comment
Share on other sites

Don't worry about it, man. You've done nothing wrong. I know you're not in the loop with everything, but we've had more than one situation in the past where someone would register multiple accounts and actually talk to himself. So we're all a little paranoid. Hope you understand. You're more than welcome to make your own help threads when you need to.

People, I've said this before - If you're suspicious of someone, come to an admin about it (like me or Slingerland) via PM or instant messenger so we can verify it for ourselves. Accusing people of things will only cause trouble. I should make this an official rule.

Now everybody get back on topic please.

Link to comment
Share on other sites

Thanks for the help and sensible amounts of skepticism everyone. =).

@Appo: The theory is good. I may just change the yspeed condition to check whether ground = 1 as I do have the same grass effect on slopes, which would mean that y speed <> 0. Thanks for the idea ^^. And don't worry, I've had threads filled with much worse.

@zenor: Would I be right in saying that because the sensors don't change layer then there won't be any of the clichéd 'falling thorugh the floor' issues? That's something I'd never thought of before. I may go with Appos idea due to the (apparent) ease of coding. thanks for the suggestion though, I'll keep it in mind.

@Rael: Ah, that makes sense. I'd been looking at collisions instead of overlapping. Because you can't negate the collision condition I was having problems. I'll give that a shot as soon as I can.

@DimensionWarped: Well, peculiar I take as a compliment. I guess I'll just have to live with the cheesy part which is a shame, because I hate cheese (the foodstuff, not the chao)

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...