Bmpcreate Suggestion

Description: Have any suggestions or new ideas for SMBX-38A? This is a place for you. Good suggestions may appear in future versions of SMBX-38A.
Moderators: Yoshi021, Lx Xzit, 5438A38A, Semi-moderatos, Moderators

Yoshi021 M
Topic author, Moderator
Moderator
Avatar
Yoshi021 M
Topic author, Moderator
Moderator
Age: 19
Reputation: 139
Posts: 675
Joined: 15 Feb 2016
Location: Yoshi's Island

Post #1by Yoshi021 » 24 Jul 2019, 20:51

Hello, I have an addition that would make bmpcreate more useful!

When using bmpcreate, if you set id to -1, it will set the id to an unused id and return that id. Here is an example.

Code: Select all

v(var) = BmpCreate(-1, picid, flagA, flagB, sx, sy, sw, sh, dx, dy, scx, scy, pcx, pcy, angle, color)

the bitmap id will be set to an unused id and v(var) will the chosen id.

I think this will be useful because now when you make an NPC you can do this:

Code: Select all

with NPC(sysval(param1))
  if .ivala = 0 then
    .ivala = BmpCreate(-1, picid, flagA, flagB, sx, sy, sw, sh, dx, dy, scx, scy, pcx, pcy, angle, color)
  end if
end with

This can let you set a bitmap per NPC without interfering with other created bitmaps. This feature will allow NPCs to be more visually complex and cooler ;-)
Links
ImageImageImage
Image
Image
"Going to University is FUN!" :pardon:

Return to “Ideas & Suggestions”

Who is online (over the past 5 minutes)

Users browsing this forum: 14 guests