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 30-Jun-2011 12:52:03

RadioMars
Member
Registered: 13-May-2011
Posts: 8

arcade style shooting

So I'm trying to make a shmup. here's what I've made so far

http://stg236.ifolder.ru/download/?2446 … BH5w%3D%3D

I use 1ms timer to constantly get player position but log window says the following

> Link WARNING : Possible loop or too fast repetitive event detected. - Nb : 1000 - Link : Scene.1ms timer.Top -> Scene.ship pos.Get position with param : NIL
> Link WARNING : Possible loop or too fast repetitive event detected. - Nb : 1000 - Link : Scene.ship pos.Position -> Scene.bullet tunnel.Input with param : -23.332626 -9.134613 0.000000

and from time to time the projectile spawns in the center of the screen..
Is there a better way to make something like this?

Last edited by RadioMars (30-Jun-2011 12:53:12)

Offline

#2 30-Jun-2011 13:31:22

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

Re: arcade style shooting

Hi, I moved the topic to the OpenSpace3D forum
The showcase forum is only for presenting completed projects with screenshots or videos.

so for your problem you don't need the 1ms second timer, just set the position when you add the instance.

loop detection disable links when it is called too fast too much times, this prevent mistakes or possibly performances problems due to a bad project structure.

here the example : link

Offline

#3 30-Jun-2011 15:12:24

RadioMars
Member
Registered: 13-May-2011
Posts: 8

Re: arcade style shooting

sorry, my mistake.
however I have tried to make it this way. the reason I put an 1ms timer is I want to make projectiles be shot directly from square, without delay..

Offline

#4 30-Jun-2011 17:01:04

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

Re: arcade style shooting

just add a link to getposition directly on key event, the timer send the first event after the period

Offline

#5 10-Feb-2013 15:13:38

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,477
Website

Re: arcade style shooting

old answer, new question.

I couldn't download the .xos file referred to above.

i'd like to use the fps controller to trigger a dialog box (to appear) when the cursor is over a particular object.

i used the ray physic plugit, but it only worked on startup

scene
..xos file

Offline

#6 10-Feb-2013 17:06:23

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

Re: arcade style shooting

if you only want an event on a mouse over the object, use le object click plugiT instead of the physic ray

Offline

#7 10-Feb-2013 17:19:48

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,477
Website

Re: arcade style shooting

thanks Arkeon it's been a while but that's what i did. what plugits would i use to shoot a scenennode. i guess the next stage would be attaching a weapon to the fps camera shell and shooting a projectile that trails a particle system from the weapon to the object that i use the objectclick plugit with.

Offline

#8 11-Feb-2013 09:13:21

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

Re: arcade style shooting

you also have the mouse plugIT which can return the 3D clicked position. then you can add an effet at this position

Offline

Board footer

Powered by FluxBB