3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: [1]

Author Topic: resetting bug  (Read 1273 times)

« on: September 26, 2009, 09:31:38 AM »
Fernando,
The arcade game I posted on the Artist's doscussion forum, contains a script that resets the main player. But it messes up the paths and the projectile object. Could you look at it to see if it is a bug?
FPS game creator for 3drad and >2000 games GamesAtNight
« Reply #1 on: September 26, 2009, 09:50:49 AM »
Daniel, keep in mind there are objects you dont really need to reset.
For example, a path, I dont see the need to reset that. I dont see either a reason to reset a projectile object, at least the number of projectiles shooted has some importance (if the projectiles are counted/limited or something like that), but if not, then you dont need to reset the projectile object either.
Crashing Boxes - winner of the 3d games category at the 5th Uruguayan video game contest
get a copy for your iPad/iPhone!
« Reply #2 on: September 26, 2009, 11:40:53 AM »
It's hard to tell because the project is complex enough  :-\

Resetting isn't something you should do lightly or massively. You should only reset what is absolutely necessary to reset, to avoid conflicts or unwanted effects.
« Reply #3 on: September 27, 2009, 08:20:07 AM »
The paths also behave strange, when I just reset the player, not the path.
FPS game creator for 3drad and >2000 games GamesAtNight
« Reply #4 on: September 27, 2009, 02:21:06 PM »
The recommended way to reset Path objects and any other object that may use it is shown in the SUVRace.3dr project.

However, as said, depending on your project design, resetting may or may not be recommended for specific objects.

« Reply #5 on: September 27, 2009, 02:41:38 PM »
The recommended way to reset Path objects and any other object that may use it is shown in the SUVRace.3dr project.

what's the difference between that SUVrace.3dr reset done by the EventOnInput object and the reset done by the script object?  ???
Crashing Boxes - winner of the 3d games category at the 5th Uruguayan video game contest
get a copy for your iPad/iPhone!
« Reply #6 on: September 28, 2009, 03:32:06 AM »
There is no difference. Each object entirely manages its own reset procedure, when it receives a reset message from another object. The message sent by a Script is the same sent by an event object.
Pages: [1]