Search results

  1. S

    Move if Oponent Body dist > 7pixels

    Awesome, many thanks :D
  2. S

    Move if Oponent Body dist > 7pixels

    didhit.c (ATTACKER) void self = getlocalvar("self"); void opponent = getentityproperty(self, "opponent"); if(opponent) { float x = getentityproperty(self, "x"); float ox = getentityproperty(opponent, "x"); float dist = ox - x; if(dist > 0) {...
  3. S

    Move if Oponent Body dist > 7pixels

    Hi, I’m trying to create a script that I use in some Attack... If opponent is on the right → face right and move (+7) If on the left → face left and move (-7) If very close (between -7 and 7) → stop moving (do nothing) @script if(frame == 0) { void self = getlocalvar("self"); void...
  4. S

    script for a fighting system like Street Fighter

    Solved. AI showed me the correct code; now the player always faces the enemy, even if player moveleft, moveright, movedown or moveup. Reminded me now God of War. anim backwalk loop 1 delay 8 bbox 9 16 68 270 offset 71 554 frame...
  5. S

    script for a fighting system like Street Fighter

    Hi, I'm trying to create a script for a fighting system like Street Fighter, 1v1 but with Z-axis movement working. So, when holding "moveleft," the player move left and it doesn't turn around or turn player back to the enemy. The character always faces where the opponent is. This way, when...
  6. S

    Palette not working in stage - colors don't change

    Hello everyone, I'm having trouble with palette switching in my OpenBOR stage. Despite everything using the same palette, the setpalette command doesn't seem to work. Here's my current stage script: #---------Stage Configuration--------- panel...
  7. S

    teleport the player to the center of the screen

    Amazing code, thank you very much :D I removed Ypos from the Code and it worked better for me. void basicCenterPosition() { // Created by maxman // Date: Oct-07-2023 // Entity moves to the center of the screen while staying in the walkable area. USAGE: @cmd basicCenterPosition void...
  8. S

    teleport the player to the center of the screen

    Hi guys, I have one question: Is there any script we can use to teleport the player to the center of the screen?
  9. S

    Musicoverlap question

    Thanks for replay. I tried the script, but music does not play musicoverlap.txt name musicoverlap type none lifespan 10 shadow 0 animationscript data/scripts/musicoverlap.c anim idle loop 0 delay 6 offset 100 43 frame data/chars/misc/empty.gif...
  10. S

    Musicoverlap question

    In metrovania games, using branchs,when I configure musicoverlap 1 in levels.txt, setting the song's address in the first stage, the following ones continue to play that song (as long as I don't set music on them). OK. The problem is when the load game, the music is not played. What to do? Use...
  11. S

    Is it possible to use the left click mouse button to attack?

    In openbor imputy keys, Is it possible to use the left click mouse button to attack? And right click Button to Run?
  12. S

    Script for summonframe

    Awesome! I used in animationscript @cmd summon "Ryu" 0 0 1 8 @cmd killSummon 8 1 It works well! Thank you very much!! I also include my changes: void summonC(void Name, float dx, float dy, float dz, char Alias, void Ani, int iMap, void Slot) { // Spawn certain entity and store it...
  13. S

    Script for summonframe

    Thanks for replay. So... I want to limit! If I summon an entity, even if the command is done again, it won't be summoned again until the entity dies. For ex. D, U A1 Freespecial10 summon Ryu. So even if I do it more times D,U A1, Ryu will not back again. But you may ask, why I dont want to...
  14. S

    what is the levels.txt max size?

    How many lines can the levels.txt file hold? Are there a maximum limit of lines or size in MB? Also I would like to know if there is any problem if pak file over 1gb?
  15. S

    Script for summonframe

    One big difference between spawnframe and summonframe, (besides the unsumon option) is that once the summoned entity is in the game, it cannot be summoned again, until it dies. So, is there any script doing exactly this summonframe property?
  16. S

    Is it possible to change the colors of the opponent's lifebar?

    Awesome @pudu! Many thanks to all of you who shared your knowledge with me, I did it. Everything works fine! I just couldn't insert the textured bar mode that @Kratus, proposed (the texture could not follow the bar progress), but everything is ok. If Kratus could insert the texture system in...
  17. S

    Is it possible to change the colors of the opponent's lifebar?

    The player's lifebar color must be different.
  18. S

    Is it possible to change the colors of the opponent's lifebar?

    Hi Maxman, Thanks for replay. The enemy header have a custom lifebar: lifebarstatus 222 12 0 1 0 2 5 lifeposition 54 500 nameposition 110 500 iconposition 210 484 nolife 1 Just, change the color to blue
  19. S

    Is it possible to change the colors of the opponent's lifebar?

    Is it possible to change the colors of the npc/opponent's lifebar?
  20. S

    stop fight outside of visible screen

    Thank you it worked. I used in onmovex void main() { //Check position relative to screen. If is offscreen, move //edge: 0 = left, 1 = right void self = getlocalvar("self"); float x = getentityproperty(self,"x"); float y = getentityproperty(self,"y")...
Back
Top Bottom