ID:145459
 
Code:
mob
proc
AI_Wave()
flick("shot",src)
src.Wave()


Problem description: Everything compiles correctly but the mob with this proc doesn't seem to want to flick it's state to "shot". Spelling, capitalization, and the icon it is in are all correct. Any thoughts?

How do you call the proc?
In response to Mysame
mob
Enemies
Met
icon = 'Met.dmi'
pixel_y = 12
New()
src.Wave()


I call it from when the game starts up. All I am doing is testing something and it should work, but it doesn't.
In response to ArcaneVirus
Of course it doesn't, you're overwriting New(). Add the parent proc ( ..() ) in the beginning, thus before src.Wave()
In response to Mysame
mob
Enemies
Met
icon = 'Met.dmi'
pixel_y = 12
New()
..()
src.Wave()




Like that? Or how else, I kind of forgot.

In response to ArcaneVirus
Why don't you try it out?

Euhm, yes, like that.
In response to Mysame
I'm at school...I can't. lol