Mouse over info

Started by Delusian, September 19, 2010, 08:40:16 am

Previous topic - Next topic

Delusian

While I had the beta testers on we discovered something that can be a bit frustraiting.

They didn't have a clue what level anything was unless they read the manual. As i've already got the mouse script in is it possible for someone to make this:

If the mouse hovers over a NPC with information in the enemy database to have their name appear in green above them?

So all it would be doing is reading their names from the database when the mouse hovers over. It would be a nice way to have this information shown to the player.

Valdred

I could do this probably, but I would need your scripts for mouse and enemies

Blizzard

I suggest you check all character_sprites in Scene_map#spriteset and if the Sprite_Character#battler is an instance of Map_Enemy and the mouse cursor is inside the sprite's bitmap's size with regarding Sprite#src_rect's width and height, get Map_Enemy#battler_id and if it's greate than 0, just find the appropriate enemy in the database and display its name. You will need a sprite connected the mouse cursor for that.
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Delusian

Quote from: Valdred on September 19, 2010, 08:46:30 am
I could do this probably, but I would need your scripts for mouse and enemies


Emailed them across :)

Valdred

I'm having a major problem. When quitting the debug the program keeps saying "now playtesting" which prevents me from doing shit. Also, I will need the script that deals with levels too, cause there is no level data in these two. :-*

Wizered67

I think in nathmatt's mces he put in a feature like that for when you hover over events. For example, when hovering over an enemy, you can put something in its name so that it changes the cursor and puts the enemy name above it.

Delusian

I've not touched the level script from default  :uhm:

Valdred

But enemies don't have levels by default. Only the actors do