I’m trying to make a mario game but you can shoot the enemy but for some reason the bullet keeps going to one direction (Right)
Flipping animation does not change angle
So your player is same angle all the time
But you can fire toward angle between positions cause points are flipped
Keep what you have and change angle to
AngleBetweenPositions(PinkMan.CenterX() , PinkMan.PointY(“bulletspawn”) , PinkMan.PointX(“bulletspawn”) , PinkMan.PointY(“bulletspawn”))
I used there PinkMan.PointY(“bulletspawn”) 2 times
SO only X position between points change where Y (altitude/height) is the same
hey can show me an example of the event
This
AngleBetweenPositions(PinkMan.CenterX() , PinkMan.PointY(“bulletspawn”) , PinkMan.PointX(“bulletspawn”) , PinkMan.PointY(“bulletspawn”))
You put here
It’s usually case sensitive, so it’ll be an upper-case B.
That’s a nifty solution that can be done in one action. I like it
Imagine im over 2 years here
Explained many times here and on discord how to shoot left and right
And just today in this exact topic i came up with idea how to do it with one action instead of 2 events checking horizontal flip
I am sad while at the same time happy
Damn
Anyway i still say for most users horizontal flip check (2 events) is easier to understand and implement/adjust
Gdevelop is case sensitive
But i have no idea what is your point? (pun intended)
We don’t know is his point is actually named Bulletspawn or bulletspawn
And actually we don’t need to
its only something he need to look into and reflect in his action
Epic Fail.
I tried to be helpful, you’re just being deliberately annoying.
Actually i was trying to help you understand what you wrote explains nothing
Like i said he could name his point LittleRedPiggy
And we would not know it even more what you wrote would not shed any light on actual state
Since he did not wrote bulletSpawn
With S in Spawn being upper case
It would be safer to assume correct name is bulletspawn
And going even further what is case sensitive?
We can name our points AAAA same as we can aaaa
What only matters did we re write them properly in events
So again your argument makes no sense
I have no idea how you find that annoying