Re: Bullet Issue

new topic     » goto parent     » topic index » view thread      » older message » newer message
Icy_Viking said...

Hi all,

Why does the bullet appear to be shown as a growing longer circle when the bullet gets fired? Am I missing a certain step?

Using Greg's FFI Library and my Raylib wrapper version 5.5

[https://github.com/gAndy50/EuRayLib5/tree/main]

include std/ffi.e 
include raylib.e 
 
[...] 
	BeginDrawing() 
	 
	if bullet_visible = 1 then 
		DrawCircleV(bullet_pos,20,RED) 
	end if 
 
	EndDrawing() 
 

Hi,
it seems you need to remove the last bullet before drawing the new on.
Like the code below, simply clears the background.

Andreas

    BeginDrawing()  
          
        if bullet_visible = 1 then 
                ClearBackground(BLACK)  
                DrawCircleV(bullet_pos,20,RED)  
        end if  
EndDrawing()  
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu