Canceled Final Fight PC 2017 (SNES and Arcade)

Project is halted prior to completion and will not receive further updates.
@Illusion

I tried the script with my ''apple'' and it didnt work. No sound or my animation....
Here is the script changes I made what did I do wrong?

Code:
void main(){
	// Custom sounds for picking itens
	// Douglas Baldan / O Ilusionista - 11/12/2016
	// Thanks Damon Caskey for the support
	
	void self = getlocalvar("self"); //get the self var
	void hit = getlocalvar("damagetaker"); // get target entity
	char Name = getentityproperty(self,"name"); // get target's name
	void power = getentityproperty(hit,"mp"); // get target's current mp
	
	int SFX1 = loadsample("data/sounds/get2.wav"); // load samples
	
	switch(Name) { // check the item name
		case "apple" : // life and power up
		changeentityproperty(hit, "mp", power+30);  // add 30 to entity power
        playsample(SFX1, 0, 120, 120, 100, 0);
		spawnAni("aitemFX",30,130,0,"ANI_FOLLOW3",NULL(),NULL(),NULL());			
        break;
		
		default : // in case of none of above
        break;
   }
}	
void spawnAni(void vName, float fX, float fY, float fZ, void Ani, float Vx, float Vy, float Vz)
{
	//spawnB (Generic spawner) + Specific animation + velocities
	//Damon Vaughn Caskey + Douglas Baldan
	//07/06/2007
	//
	//Spawns entity next to caller.
	//
	//vName: Model name of entity to be spawned in.
	//fX: X location adjustment.
	//fZ: Y location adjustment.
      //fY: Z location adjustment.

	void self = getlocalvar("self"); //Get calling entity.
	void vSpawn; //Spawn object.
	int  iDirection = getentityproperty(self, "direction");

	clearspawnentry(); //Clear current spawn entry.
      setspawnentry("name", vName); //Acquire spawn entity by name.

	if (iDirection == 0){ //Is entity facing left?                 
          fX = -fX; //Reverse X direction to match facing.
	}

      fX = fX + getentityproperty(self, "x"); //Get X location and add adjustment.
      fY = fY + getentityproperty(self, "a"); //Get Y location and add adjustment.
      fZ = fZ + getentityproperty(self, "z"); //Get Z location and add adjustment.
	
	vSpawn = spawn(); //Spawn in entity.

	changeentityproperty(vSpawn, "position", fX, fZ, fY); //Set spawn location.
	changeentityproperty(vSpawn, "direction", iDirection); //Set direction.
    	performattack(vSpawn, openborconstant(Ani));
	changeentityproperty(vSpawn, "velocity", Vx, Vy, Vz);

	return vSpawn; //Return spawn.
}

Here is my item:

Code:
name	APPLE
health   30
type   item
shadow	0
nolife 1
didhitscript     data/scripts/didhit/item.c

anim spawn
	loop	0
	delay	2
	offset	18 27
	bbox	5 4 19 16
	frame	data/chars/misc/food/apple01.gif
        offset	18 28
        frame	data/chars/misc/food/apple02.gif 
        offset	18 29
        frame	data/chars/misc/food/apple01.gif
        offset	18 30
        frame	data/chars/misc/food/apple02.gif
        offset	18 31
        frame	data/chars/misc/food/apple01.gif 
        offset	18 32
	frame	data/chars/misc/food/apple02.gif
        offset	18 33
        frame	data/chars/misc/food/apple01.gif
        offset	18 32
        frame	data/chars/misc/food/apple02.gif
        offset	18 31
        frame	data/chars/misc/food/apple01.gif
        offset	18 30
	frame	data/chars/misc/food/apple02.gif
        offset	18 29
        frame	data/chars/misc/food/apple01.gif
        offset	18 28
        frame	data/chars/misc/food/apple02.gif
        offset	18 27
	frame	data/chars/misc/food/apple01.gif
        offset	18 28
        frame	data/chars/misc/food/apple02.gif 
        offset	18 29
        frame	data/chars/misc/food/apple01.gif
        offset	18 30
        frame	data/chars/misc/food/apple02.gif
        offset	18 31
        frame	data/chars/misc/food/apple01.gif 
        offset	18 32
	frame	data/chars/misc/food/apple02.gif
        offset	18 33
        frame	data/chars/misc/food/apple01.gif
        offset	18 32
        frame	data/chars/misc/food/apple02.gif
        offset	18 31
        frame	data/chars/misc/food/apple01.gif
        offset	18 30
	frame	data/chars/misc/food/apple02.gif
        offset	18 29
        frame	data/chars/misc/food/apple01.gif
        offset	18 28
        frame	data/chars/misc/food/apple02.gif
        offset	18 27
	frame	data/chars/misc/food/apple01.gif

anim idle
	loop	1
	delay	4
	offset	18 27
	bbox	5 4 19 16
	frame	data/chars/misc/food/apple01.gif
	delay   4
	frame	data/chars/misc/food/apple02.gif
        
anim follow3
	loop	        0
	delay	2
	offset	18 27
	frame	data/chars/misc/food/food_flash01.gif
        frame	data/chars/misc/food/food_flash02.gif 
        frame	data/chars/misc/food/food_flash01.gif
        frame	data/chars/misc/food/food_flash02.gif 
        frame	data/chars/misc/food/food_flash01.gif
        frame	data/chars/misc/food/food_flash02.gif 
        frame	data/chars/misc/food/food_flash01.gif
        frame	data/chars/misc/food/food_flash02.gif 
        frame	data/chars/misc/food/food_flash01.gif
        frame	data/chars/misc/food/food_flash02.gif 
        frame	data/chars/misc/food/food_flash01.gif
        frame	data/chars/misc/food/food_flash02.gif

I attached the animation I want to play for the icon when picked up :)


[attachment deleted by admin]
 
I just want this icon to play when picking up food and scroll with the screen so how would I script that? :)


[attachment deleted by admin]
 
You could probally use O's script to do that... You just have to adjust the icon's off set to be at or around the lifebar like in final fight game... It's similar to the life bar or select screen trick which uses the same thing...  Basically you would make a shot of your game by what resolution it is and then you put the animation where you want it on screen.... Then use o's script and it will be by the life bar and scroll with screen etc :P
 
oh, its my fault. I forgot to add the "spawnAni" function on the post (its on my animationscript).
Nevermind, now I saw the spawnAni function there.

You will need an entity for those effects. In my case, its called "aitemFX".

apescott said:
I just want this icon to play when picking up food and scroll with the screen so how would I script that? :)

Spawn an type panel entity.
 
So something like this?

Code:
void main(){
	// Custom sounds for picking itens
	// Douglas Baldan / O Ilusionista - 11/12/2016
	// Thanks Damon Caskey for the support
	
	void self = getlocalvar("self"); //get the self var
	void hit = getlocalvar("damagetaker"); // get target entity
	char Name = getentityproperty(self,"name"); // get target's name
	void power = getentityproperty(hit,"mp"); // get target's current mp
	
	int SFX1 = loadsample("data/sounds/get2.wav"); // load samples
	
	switch(Name) { // check the item name
		case "apple" : // Gives 30 health
		changeentityproperty(hit, "mp", power+30);  // add 30 to entity power
        playsample(SFX1, 0, 120, 120, 100, 0);
		spawnAni("food_flash",30,130,0,"ANI_FOLLOW3",NULL(),NULL(),NULL());			
        break;
		
		default : // in case of none of above
        break;
   }
}	
void spawnAni(void vName, float fX, float fY, float fZ, void Ani, float Vx, float Vy, float Vz)
{
	//spawnB (Generic spawner) + Specific animation + velocities
	//Damon Vaughn Caskey + Douglas Baldan
	//07/06/2007
	//
	//Spawns entity next to caller.
	//
	//vName: Model name of entity to be spawned in.
	//fX: X location adjustment.
	//fZ: Y location adjustment.
      //fY: Z location adjustment.

	void self = getlocalvar("self"); //Get calling entity.
	void vSpawn; //Spawn object.
	int  iDirection = getentityproperty(self, "direction");

	clearspawnentry(); //Clear current spawn entry.
      setspawnentry("name", vName); //Acquire spawn entity by name.

	if (iDirection == 0){ //Is entity facing left?                 
          fX = -fX; //Reverse X direction to match facing.
	}

      fX = fX + getentityproperty(self, "x"); //Get X location and add adjustment.
      fY = fY + getentityproperty(self, "a"); //Get Y location and add adjustment.
      fZ = fZ + getentityproperty(self, "z"); //Get Z location and add adjustment.
	
	vSpawn = spawn(); //Spawn in entity.

	changeentityproperty(vSpawn, "position", fX, fZ, fY); //Set spawn location.
	changeentityproperty(vSpawn, "direction", iDirection); //Set direction.
    	performattack(vSpawn, openborconstant(Ani));
	changeentityproperty(vSpawn, "velocity", Vx, Vy, Vz);

	return vSpawn; //Return spawn.
}

Here is the panel to spawn:

Code:
name      food_flash
speed      10
type      panel
nolife      1
facing 1
gfxshadow	0
setlayer 10000
noquake 0 1



anim	idle
	loop	1
	delay	4
	offset	0 26
	frame	data/chars/misc/food/food_flash01.gif
        frame	data/chars/misc/food/food_flash02.gif
        frame	data/chars/misc/food/food_flash01.gif
        frame	data/chars/misc/food/food_flash02.gif
        frame	data/chars/misc/food/food_flash01.gif
        frame	data/chars/misc/food/food_flash02.gif
        frame	data/chars/misc/food/food_flash01.gif
        frame	data/chars/misc/food/food_flash02.gif
        frame	data/chars/misc/food/food_flash01.gif
        frame	data/chars/misc/food/food_flash02.gif
		
#|edited by openBor Stats v 0.67

Does the food_flash play automatically or do I give it an anim_follow3 to play?  I tried to see how your avenger logo played when it spawned your panel on the hud but couldn't find the logo item itself :P
 
O Ilusionista said:
oh, its my fault. I forgot to add the "spawnAni" function on the post (its on my animationscript).
Nevermind, now I saw the spawnAni function there.

You will need an entity for those effects. In my case, its called "aitemFX".

apescott said:
I just want this icon to play when picking up food and scroll with the screen so how would I script that? :)

Spawn an type panel entity.

I tried what I just posted and it didn't work..... I loaded my food_flash in the models.txt but when I pick up the apple in game it doesn't spawn the flashing icon :(
Sorry to bother you so much lol. I am totally lost xDDDD.
 
O Ilusionista said:
or do I give it an anim_follow3 to play?  I
Yes, the code is calling that entity and playing the FOLLOW3 anim

I changed it to spawn in idle animation and it still failed :(  When I pick up the apple it still does nothing.... I have no idea how to script this ><
Could you make a script file for me to use? I stink at this lol. Ty so much for your help :)
 
O Ilusionista said:
Pm me your game, let me try it. I think I will have free time tomorrow.

I sent my mod to you Illusion :)
Take your time on that script. Thank you for doing this for me ^___^
 
apescott said:
O Ilusionista said:
Pm me your game, let me try it. I think I will have free time tomorrow.

I sent my mod to you Illusion :)
Take your time on that script. Thank you for doing this for me ^___^

hey man. Sadly, I won't have time to look on it. I am just too busy with a lot of things going on.

Really sorry for that. Try reaching out BB or DC.

 
No problem O'! I have a blinking food and point icon using the deathx script that works pretty well :)
Thank you so much for you help!!!!! ^___^
 
Hi thank you  :D
I think the video is Arcade version not snes, I have downloaded 2-3 different versions of Final Fight PC by apescott
2 of them using snes sprite, the last one is Gba version. Couldn't find the arcade version anywhere
 
Back
Top Bottom