Hello,

I have created a game in java and I would like to insert enemies. For now I placed them on plaftforms that I made invisible.

How can I have the enemy on its own?

I have ... no idea whatsoever you are talking about.
what do you mean by 'placed them on platforms'. also, if you've already placed them on platforms, doesn't that imply your enemy is on its own platform?

please elaborate a bit more.

I assume you have variables for its position and velocity that you update at regular intervals (Swing Timer) - in which case just add a fixed amount to the (downwards) vertical velocity component on each update. This will result in the downwards speed increasing steadily - just like g.

This question has already been answered. Start a new discussion instead.