1
General / Moving springs separately
« on: January 19, 2023, 12:33:45 pm »
Hi, I want to have options to move them separately, how can I do this?
if (app.isKeyPressedEvent());
{
dino.processEvents(app.e.key.code, true);
player.procesEvents(app.e.key.code, true);
}
if (app.isKeyReleased())
{
dino.processEvents(app.e.key.code, false);
player.procesEvents(app.e.key.code, false);
}
if (app.isKeyPressedEvent());
{
dino.processEvents(app.e.key.code, true);
player.procesEvents(app.e.key.code, true);
}
if (app.isKeyReleased())
{
dino.processEvents(app.e.key.code, false);
player.procesEvents(app.e.key.code, false);
}