Scolring - Forum

Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology

Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered

You are not logged in.

#1 23-Apr-2013 04:32:40

el_motoblock
Member
From: Russia
Registered: 16-Feb-2013
Posts: 271

Collision detection and health bar

hello! Please help - how must i create collision detection, i make if player collide with model then lifebar width sets to 50, but when i run - lifebar sets to 50 instant. How to regulate definition of hardness the fall?

http://www.mediafire.com/?pcb3pk77aqfqowy

thanks in advance

Offline

#2 23-Apr-2013 08:10:10

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: Collision detection and health bar

Hi !

I change your project to set a var plugIT contains the life value.
if the collision speed is greater than 8 it remove the value to the life bar using "$1 10" in link parameter
$1 mean the collision speed value

http://arkeon.dyndns.org/scol/lifebar.xos

Offline

#3 24-Apr-2013 08:09:30

el_motoblock
Member
From: Russia
Registered: 16-Feb-2013
Posts: 271

Re: Collision detection and health bar

thanks, it works  big_smile

Offline

#4 1-Aug-2015 10:43:53

el_motoblock
Member
From: Russia
Registered: 16-Feb-2013
Posts: 271

Re: Collision detection and health bar

https://yadi.sk/d/g4O51JExiDASn Again the same problem
a long time I had this sample, even hosting is not found
please help

Offline

#5 1-Aug-2015 12:03:23

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: Collision detection and health bar

http://arkeon.dyndns.org/scol/os3d/game_main.xos

I used the picture plugit for life bar and defined values in %. all the phones don't have the same screen resolution, so you should use % values for buttons and HUD

when a hit velocity is too high it reduce the life value depending of the hit value.
if you jump on the entrance cylinder the life value is filled with a timer (health charger)

When life is < 1 a dead button show up and allow to restart the game

Offline

#6 1-Aug-2015 12:15:13

el_motoblock
Member
From: Russia
Registered: 16-Feb-2013
Posts: 271

Re: Collision detection and health bar

thanks

Offline

#7 1-Aug-2015 12:40:07

el_motoblock
Member
From: Russia
Registered: 16-Feb-2013
Posts: 271

Re: Collision detection and health bar

https://yadi.sk/d/g4O51JExiDASn i change folder for interface images
if dead and restart sets very big health

Offline

#8 1-Aug-2015 14:36:06

el_motoblock
Member
From: Russia
Registered: 16-Feb-2013
Posts: 271

Re: Collision detection and health bar

Nevermind

Offline

Board footer

Powered by FluxBB