Got a quick qestion here,
Displaying 1-5 of 5 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
SmokeDog

using verge 2.7

I am attempting to display numbers on the screen, and be able to keep control of the hero. So far I an unable to do so.

I have tried it using font'Print() and image.Blit()
Everything draws nicely, but I am unable to control my hero.

Is there any way to draw the numbers to the screen while being able to move the hero at the same time? I can't figure it out for the life of me.

Thanks in advance.





Posted on 2001-09-05 23:11:10

andy

The easiest way is to use HookRetrace.

In short, you define a function, then HookRetrace it. The function will then be executed every time the screen is rendered.

def Foo():
   dosomething()
   dosomethingelse()
   yougettheidea()

HookRetrace(Foo)

When you're done with it, simply UnhookRetrace it.

UnhookRetrace(Foo)



"Ignorance is its own reward" -- Proverb

Posted on 2001-09-05 23:15:15

SmokeDog

Cool, thanks tsb.
I was trying to hook up onto espernet, but it is down. Did you all move somewhere else? Or does Espernet hate me?



Posted on 2001-09-05 23:24:29

andy

You can try irc.esper.net, it connects you to the "best" (don't ask me how it determines that) server.



"Ignorance is its own reward" -- Proverb

Posted on 2001-09-06 00:47:45

SmokeDogWork

Bah, all that does is time out on me. :( It is happening to a friend of mine to. So Me == Screwed :/

On another note, I am getting the hang of verge now.. It is kinda hard, since I just started with version 2.7 instead of the older versions, so the only code I have to play with is the stuff that comes with it

What I am basically trying to do is cause numbers to follow the enity I hit. Getting the numbers to follow it is the easy part. Getting them to display for any amount of time and being able to keep control of my hero is the part I am not getting.
Hell, I even taught myself how to use the alpha layer in psp6 last night, so my image can be transparent. That took a little bit of playing around. Kinda neat though.

I tried using the HookRetrace() function, but I don't think I understand if very much yet, So If I don't mind, I might have to pick apart your brain more, if you got time for it.



SmokeDog, High Lord King of Redundancy!!! [Enter Gratiutious and Profound signature file here.]

Posted on 2001-09-06 10:07:00


Displaying 1-5 of 5 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.