Register    Login    Forum    FAQ    PinSimDB.org

Board index » Welcome to GoPinball » General Discussion




Post new topic Reply to topic  [ 23 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: creation dmd animation
 Post Posted: Thu Feb 21, 2019 6:51 pm 
Offline
User avatar

Joined: Mon Aug 15, 2011 10:02 am
Posts: 1776
Location: Argentina
The following is a basic instructin for a DMD animation that use the script below

Code:
'MODELO
sub Target100000_hit
PrimerLetra=32
UltimaLetra=125
fuente =1
velocidad=50
textstring="[f1] "
mantener=10
empiezadmd
end sub


Lets see line per line

sub Target100000_hit
Well a target been hit hahaahah :lol:


PrimerLetra=32
Set the first letter by number of the character, in this case 32

The number correspon with the Character number, 32 is the space bar, 33 is !, see the FP DMD editor to know what nomber is what character


UltimaLetra=125
Set the last letter by number of the character, in this case 125

The number correspon with the Character number 125 ia }

fuente =1
Font number assigned in script using AddFont, in this case 1

MyDMD.AddFont 1, "The font name"

velocidad=50
The speed in wich the DMD animation change from frame to frame, high value slow animation, low values fast animations, its measure in milliseconds and is the timer duration of TimerDMD


textstring="[f1] "
Sometimes DMD animations have txt on it, so there is when you add the text

mantener=10
Hold the last frame at the DMD before back to show score, is used miliseconds

empiezadmd
call the subrutine sub empiezadmd to start the DMD animation


Top 
 Profile  
 
 Post subject: Re: creation dmd animation
 Post Posted: Thu Feb 21, 2019 6:59 pm 
Offline
User avatar

Joined: Mon Aug 15, 2011 10:02 am
Posts: 1776
Location: Argentina
lets see...

Code:
Sub empiezadmd
   TimerDMD2.Enabled = false
   TimerDMD.Enabled = false
   TimerDMD.Interval = velocidad
   Timeraddzero.Enabled = False   
   TimerDMD.Enabled = True
   Dmdinuse=true
   if showingjackpot=true then
      exit sub
   end if
end sub


First stop all the timers and adjust the timer new speed
TimerDMD2.Enabled = false
TimerDMD.Enabled = false
TimerDMD.Interval = velocidad
Timeraddzero.Enabled = False



Start the timer again
TimerDMD.Enabled = True

Set a flag that tell us that the DMD is in use, used for no points refresh, see last msj
Dmdinuse=true


Do nothing if jackpot are in DMD, must be un top of the subrutine, at the botton dosent have any effect
if showingjackpot=true then
exit sub
end if


Last edited by francisco666 on Fri Feb 22, 2019 1:06 am, edited 1 time in total.

Top 
 Profile  
 
 Post subject: Re: creation dmd animation
 Post Posted: Thu Feb 21, 2019 7:06 pm 
Offline
User avatar

Joined: Mon Aug 15, 2011 10:02 am
Posts: 1776
Location: Argentina
Fiiiinaly

Code:
sub TimerDMD_expired()
                        'AddDebugText "timer exp"
                        'AddDebugText ""&PrimerLetra   
   TimerDMD.Enabled = false
   PrimerLetra = PrimerLetra + 1
   dmdstring = "[f"+cstr(fuente)+"][xc][yc]" &chr(PrimerLetra) &"[f1] "&textstring
   MyDmd.Text=dmdstring
   MyDMD2.Text=dmdstring
   if (PrimerLetra => UltimaLetra) then    
      'AddDebugText "to zero"

      
      TimerDMD.Enabled = false
      Timeraddzero.Interval = mantener
      Timeraddzero.Enabled = true
      
      exit sub   
   end if
   TimerDMD.Interval = velocidad
   TimerDMD.Enabled = True
end sub


In the main TimerDMD subrutine after the clock expire acording to velocidad, the speed of the animation, the character will be go to the next one:
PrimerLetra = PrimerLetra + 1

Characters are numbers

And if we reach the last font
if (PrimerLetra => UltimaLetra) then

Stop all and set the timer to add cero points to go back to point
Timeraddzero.Interval = mantener
Timeraddzero.Enabled = true


Top 
 Profile  
 
 Post subject: Re: creation dmd animation
 Post Posted: Thu Feb 21, 2019 7:11 pm 
Offline
User avatar

Joined: Mon Aug 15, 2011 10:02 am
Posts: 1776
Location: Argentina
IMPORTANT

You must add some lines tu your rutine of add points, by default it is
Sub AddScore(points)

After the math of add points
nvScore(CurrentPlayer) = nvScore(CurrentPlayer) + (Points)

add
Code:
   if dmdinuse=true then
      exit sub
   end if


If you dont the DMD will flickr

Well sorry my english, hope it can be understand somehow, and Im here to answer any question


Top 
 Profile  
 
 Post subject: Re: creation dmd animation
 Post Posted: Thu Feb 21, 2019 11:44 pm 
Offline

Joined: Mon Jan 27, 2014 12:36 pm
Posts: 2459
Location: Ontario, Canada
Perfectly , thanks Francisco !


Top 
 Profile  
 
 Post subject: Re: creation dmd animation
 Post Posted: Fri Feb 22, 2019 3:58 am 
Offline
User avatar

Joined: Mon Sep 21, 2015 10:33 am
Posts: 144
Location: UK - Bridgnorth (Shropshire)
This has now provided me with a much better understanding - a great overview/tutorial Francisco.... thank you :)


Top 
 Profile  
 
 Post subject: Re: creation dmd animation
 Post Posted: Fri Feb 22, 2019 6:22 am 
Offline

Joined: Sun Dec 30, 2018 8:17 am
Posts: 36
Location: France
trad. google:
thank you gin and Francisco for your help and valuable information.
gin ok for your help, leave me a few moments that I can organize myself. fonts of age of ultron characters are visible in overlay video with the fp table (or pinsimdb).it's outline of capital letters, which fill up pixels during activation of these. In pure animation, you have to watch the teaser on YT or at home, because the rom do not exist because 100% software or hack the steam file. !!!! :cry:

Francisco with your tutorial, will be able to analyze the construction process ; and use it for my template (new table)
if I have a problem, and surely I will; I will post a new message.
thanks to you two


there is a FP table, but I do not know which one or the dmd was interactive :o :o !!!!!! (video game mode).

merci gin et Francisco pour votre aide et précieuses information.
gin ok pour votre aide , laisse moi quelques instants que je puisse m'organiser. les fontes de caracteres de age of ultron sont visibles en overlay video avec la table fp (ou pinsimdb). (contour de majuscule , qui se remplissent de pixels lors d' activation de celles-ci). En animation pur , il faut regarder les teaser sur YT ou chez soi, car les rom n'existent pas car 100 % logiciel ou pirater le fichier steam. !!!! ((((
Francisco avec ton tuto , vais pouvoir de mon coté analyser le processus de construction.
si j'ai un souci , et surement que j'en aurai ; je posterai un nouveau message.
merci à vous deux.

il y a une table FP , mais je ne sais plus laquelle ou le dmd était interactif :o :o !!!!!!(mode jeu video)


Top 
 Profile  
 
 Post subject: Re: creation dmd animation
 Post Posted: Fri Feb 22, 2019 8:04 am 
Offline

Joined: Mon Jan 27, 2014 12:36 pm
Posts: 2459
Location: Ontario, Canada
Quote:
il y a une table FP , mais je ne sais plus laquelle ou le dmd était interactif :o :o !!!!!!(mode jeu video)


Indiana Jones has interactive video game DMDs
( Mine Cart Race , Choose Wisely, Raven Bar )


Top 
 Profile  
 
 Post subject: Re: creation dmd animation
 Post Posted: Fri Feb 22, 2019 10:11 am 
Offline

Joined: Sun Dec 30, 2018 8:17 am
Posts: 36
Location: France
this splendid explanation should be pinned in the tutorial section


Top 
 Profile  
 
 Post subject: Re: creation dmd animation
 Post Posted: Fri Feb 22, 2019 3:15 pm 
Offline
User avatar

Joined: Mon Sep 21, 2015 10:33 am
Posts: 144
Location: UK - Bridgnorth (Shropshire)
Hi Backup,

Please use the following link to download an 'ULTRON' related *.txt file that I have quickly created, that can be viewed with DMDPaint:
https://www.sendspace.com/file/e2zq36

I have tried to show an example of the 'frames' that could be used when showing the letters of ULTRON filling up; as seen in this video (https://www.youtube.com/watch?v=SOl8eNyTJco&t=1). This is just an example, that could hopefully help with an understanding of how a DMD animation could be created using DMDPaint.

Gin


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 23 posts ]  Go to page Previous  1, 2, 3  Next

Board index » Welcome to GoPinball » General Discussion


Who is online

Users browsing this forum: Google [Bot] and 4 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: