Register    Login    Forum    FAQ    PinSimDB.org

Board index » Future Pinball » Closed WIP




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 105 posts ]  Go to page Previous  1 ... 7, 8, 9, 10, 11
Author Message
 Post subject: Re: wip: TAXI
 Post Posted: Fri Dec 14, 2012 6:11 am 
Offline
User avatar

Joined: Fri Oct 22, 2010 6:41 pm
Posts: 889
Location: France
Hi all,
I'll ask a question, certainly very stupid, too bad for my pride ... :roll:
I have a kicker who can receive multiple events (up to 3, maximum), at the same time;
these events, not keeping the ball for the same time.
event 1 = 2 sec
event 2 = 5 sec
event 3 = 8 sec

how to combine this delay, if there are 2 or 3 events at the same time?
so far, I managed to put the same time values ​​and flags saying if 1, 2 or 3 events should be played;
I'm trying to find a way around this:
Timerjoyride.interval = timejoy + 5000
but I must to miss something, because it does not work well ... (not at all)
... yes I am ashamed! :twisted:


You do not have the required permissions to view the files attached to this post.

_________________
Recreated Pinball: Whirlwind ; Taxi ; Funhouse ; Jokerz ; POTO.
Original Pinball: Wipeout ; Monster-Hunter
Wip: ...


Top 
 Profile  
 
 Post subject: Re: wip: TAXI
 Post Posted: Fri Dec 14, 2012 8:36 am 
Offline
User avatar

Joined: Mon Aug 15, 2011 10:02 am
Posts: 1706
Location: Argentina
why not set a timer when you hit the kicker:

sub mykicker_hit
'Play fx sounds so it don't repeat, add basic points to
playsound ""
addscore()
kickerrutine.set true,10
end sub

and now in the timer add the checks and exit sub and recall the timer

sub kickerrutine_expired
kickerrutine.set false
'Check event 1, if true give it, exit and come back here in 2 seconds
if event1=true then 'or event 1 conditions
kickerrutine.set true,2000
event1=false
'Do what it got to do
exit sub
end if

'Check for event 2, if true give it, exit and come back here
if event2=true then
kickerrutine.set true,5000
event2=false
'Do what it got to do
exit sub
end if

'Check for event 3, if true give it, exit and come back here
if event3=true then
kickerrutine.set true,8000
event2=false
'Do what it got to do
exit sub
end if

'If we reach this point if becouse none of the events are true, release the ball
mykicker.solenoidpulse
end sub


Top 
 Profile  
 
 Post subject: Re: wip: TAXI
 Post Posted: Fri Dec 14, 2012 9:39 am 
Offline
User avatar

Joined: Fri Oct 22, 2010 6:41 pm
Posts: 889
Location: France
Thank you Francisco, once again, you come at my rescues!
It seems indeed functional! (I have not tested, I'm at work - but I have no doubt on your capacity!!)
I was not looking in the right direction ... because with my syteme "Timerjoyride.interval = timejoy + 5000 ", FP take only a single value into account ... and that, even if the three were active ...
Thank again!

_________________
Recreated Pinball: Whirlwind ; Taxi ; Funhouse ; Jokerz ; POTO.
Original Pinball: Wipeout ; Monster-Hunter
Wip: ...


Top 
 Profile  
 
 Post subject: Re: wip: TAXI
 Post Posted: Sun Dec 23, 2012 10:03 am 
Offline
User avatar

Joined: Fri Oct 22, 2010 6:41 pm
Posts: 889
Location: France
hello!
ARRRGGG ..... I'll miss the release for Christmas ... :evil:
there is not much to do, but it will be too short.
there are sets of lights to put in place, review the "pool" of spinout (which is not running the ball enough), then some details graphics / gameplay ...

however, everything else is in place and I'd like to know if there was a voluntary (or 2) to test the table and finish with me the-hunting-bug :D

_________________
Recreated Pinball: Whirlwind ; Taxi ; Funhouse ; Jokerz ; POTO.
Original Pinball: Wipeout ; Monster-Hunter
Wip: ...


Top 
 Profile  
 
 Post subject: Re: wip: TAXI
 Post Posted: Sun Dec 23, 2012 10:22 am 
Offline
User avatar

Joined: Wed Dec 29, 2010 6:20 am
Posts: 1882
Volontaire BIL... PRESENT !!!! :D ;)


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 105 posts ]  Go to page Previous  1 ... 7, 8, 9, 10, 11

Board index » Future Pinball » Closed WIP


Who is online

Users browsing this forum: No registered users and 11 guests

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to: