Help wanted makenig Egghead not cause crashes

Status
Not open for further replies.

glaber

Emblem Radar Ready
I just checked the wiki and it doen't tell me how A_FireShot fully works.
What it says about it is:
A standard attack. Fires an object of var1 type at the target.

And the enemy creation guide is olny good for creating crawla clones.

Basicly what I'm asking is how do I get a custom robot to shoot something? (In this case the custom is lost badnik "Egghead")
 
A_Bulletshoot (or something) will shhot a bullet determined by the raisestate number. A_Fireshot shoots a bullet with var1 because eggman actually uses the raisestate feature. Another difference is that A_Fireshot launches the projectiles from either the right or left side to make the eggmobiles cannon sprites look like they are firing.
 
I try using the raise state number to get 91 - MT_JETTBULLET as the bullet but it keps reverting to 91 - S_SPOS_RUN17 and with testing I wind up getting a sigsev whenever egghead tries to shoot. Is the actuall raise state number to call the Jetteson bullet something else?
 
What's not to get? Have the enemy call A_FireShot, setting var1 to whatever you want it to use as a projectile. This isn't brain science, nor is it rocket surgery.
 
it may not be rocket science but it is a programming language of some sort. Plus you guys have more experience with soccing than me.

Well I went with A_BulletShoot and set the raise state to 584 and this time I got a different error.
CreateSoundfuffer()FAILED: One or more of the parameters passed to the fuction are incorrect

Here's what I currently have: http://www.mediafire.com/?9dyw4cwyz3y
 
A_BulletShoot is weird, A_FireShot is definately the easiest to use projectile attack.

And really, I wouln't consider SOCcing programming. If anything, it's a toy.
 
In the soc editor there are 2 A_FireShots is this because of how the first/third Robotnik boss works?
 
Because the source is funny. However, they both have the same stats, and record the same thing to notepad. Here, glaber, since you haven't gotten it after we've spelled it out repeatedly, let me hold your hand:

A_Fireshot.jpg


Code:
FRAME 98
SPRITENUMBER = 4
SPRITESUBNUMBER = 2
DURATION = 35
NEXT = 96
ACTION A_FireShot
VAR1 = 4
VAR2 = 0
 
Actually I got it after Draykon's last post. I was just wondering why there were two of it. At least the question was answered.

Edit: Ok I got Egghead shooting but now it's causing the game to crash whenever it hits the ground, or when you get killed by its bullets. I have no idea what's causing that to happen.

Double edit: I took a look at the error log and it's causeing Stack Overflows. any Ideas how to stop it from doing that? (and on a minor note have A_FireShot shoot from the middle.)

edit X3: updated Egghead wad with soc in the wad.: http://www.mediafire.com/?c3lcgigelld
 
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top